diff options
Diffstat (limited to 'clients')
-rw-r--r-- | clients/window.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clients/window.c b/clients/window.c index 973b2106..2d0efc50 100644 --- a/clients/window.c +++ b/clients/window.c @@ -837,6 +837,13 @@ window_attach_surface(struct window *window) window->opaque_region = NULL; } + if (window->input_region) { + wl_surface_set_input_region(window->surface, + window->input_region); + wl_region_destroy(window->input_region); + window->input_region = NULL; + } + switch (window->buffer_type) { #ifdef HAVE_CAIRO_EGL case WINDOW_BUFFER_TYPE_EGL_WINDOW: @@ -867,13 +874,6 @@ window_attach_surface(struct window *window) default: return; } - - if (window->input_region) { - wl_surface_set_input_region(window->surface, - window->input_region); - wl_region_destroy(window->input_region); - window->input_region = NULL; - } } int |