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 <marius.vlad@collabora.com>
dev
Marius Vlad 5 years ago committed by Daniel Stone
parent 36453951fb
commit 7e0f20311f
  1. 3
      clients/fullscreen.c

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

Loading…
Cancel
Save