clients/fullscreen: Refuse to resize the surface size when fullscreen'ed
authorMarius Vlad <marius.vlad@collabora.com>
Sun, 25 Aug 2019 19:33:41 +0000 (22:33 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 25 Nov 2019 20:40:24 +0000 (20:40 +0000)
This would be causing a protocol error in which the buffer size needs to
match the one provided in the configure event.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
clients/fullscreen.c

index ff41d418c4721a293c995afbbb7769fe9b9e0cab..1b44ad535e7f318ac3a5f46e0246c19c8f10ee2c 100644 (file)
@@ -280,6 +280,9 @@ key_handler(struct window *window, struct input *input, uint32_t time,
                break;
 
        case XKB_KEY_z:
+               if (fullscreen->fullscreen)
+                       break;
+
                current_size = (current_size + 1) % 4;
                fullscreen->width = widths[current_size];
                fullscreen->height = heights[current_size];