mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 11:18:43 +02:00
xwm: Set input region for fullscreen surfaces correctly
The logic here broke at some point so that we would only update the input region for non-fullscreen windows. Thus, a fullscreen window would be stuck with whatever size the most recent non-fullscreen size was. https://bugs.freedesktop.org/show_bug.cgi?id=69219
This commit is contained in:
parent
f74b6e1596
commit
a27d6f3ece
1 changed files with 10 additions and 6 deletions
|
|
@ -938,14 +938,18 @@ weston_wm_window_draw_decoration(void *data)
|
|||
window->height + 2);
|
||||
}
|
||||
weston_surface_geometry_dirty(window->surface);
|
||||
}
|
||||
|
||||
if (window->surface && !window->fullscreen) {
|
||||
pixman_region32_fini(&window->surface->pending.input);
|
||||
pixman_region32_init_rect(&window->surface->pending.input,
|
||||
t->margin, t->margin,
|
||||
width - 2 * t->margin,
|
||||
height - 2 * t->margin);
|
||||
|
||||
if (window->fullscreen) {
|
||||
pixman_region32_init_rect(&window->surface->pending.input,
|
||||
0, 0, window->width, window->height);
|
||||
} else if (window->decorate) {
|
||||
pixman_region32_init_rect(&window->surface->pending.input,
|
||||
t->margin, t->margin,
|
||||
width - 2 * t->margin,
|
||||
height - 2 * t->margin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue