From 7e0f20311f60e3d0f117f4d5b227d873047fea78 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Sun, 25 Aug 2019 22:33:41 +0300 Subject: [PATCH] clients/fullscreen: Refuse to resize the surface size when fullscreen'ed 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 --- clients/fullscreen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clients/fullscreen.c b/clients/fullscreen.c index ff41d418..1b44ad53 100644 --- a/clients/fullscreen.c +++ b/clients/fullscreen.c @@ -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];