From 3fb613effe5da952de8dae1763aa16bcb26ee064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 15 Oct 2012 15:01:24 -0400 Subject: [PATCH] window: Set input region also when we go fullscreen We used to rely on the compositor resetting this as a side effect of changing size, but it doesn't work like that any more. --- clients/window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clients/window.c b/clients/window.c index 5dcd6cbef..9bc9e1921 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1455,13 +1455,16 @@ frame_resize_handler(struct widget *widget, shadow_margin = widget->window->type == TYPE_MAXIMIZED ? 0 : t->margin; + widget->window->input_region = + wl_compositor_create_region(display->compositor); if (widget->window->type != TYPE_FULLSCREEN) { - widget->window->input_region = - wl_compositor_create_region(display->compositor); wl_region_add(widget->window->input_region, shadow_margin, shadow_margin, width - 2 * shadow_margin, height - 2 * shadow_margin); + } else { + wl_region_add(widget->window->input_region, + 0, 0, width, height); } widget_set_allocation(widget, 0, 0, width, height);