mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-22 08:00:11 +01:00
window.c: Only set input region when we have a decoration
https://bugs.freedesktop.org/show_bug.cgi?id=50490
This commit is contained in:
parent
5085001f82
commit
dd263e546b
1 changed files with 7 additions and 7 deletions
|
|
@ -1260,6 +1260,13 @@ frame_resize_handler(struct widget *widget,
|
||||||
allocation.width = width - decoration_width;
|
allocation.width = width - decoration_width;
|
||||||
allocation.height = height - decoration_height;
|
allocation.height = height - decoration_height;
|
||||||
|
|
||||||
|
widget->window->input_region =
|
||||||
|
wl_compositor_create_region(display->compositor);
|
||||||
|
wl_region_add(widget->window->input_region,
|
||||||
|
t->margin, t->margin,
|
||||||
|
width - 2 * t->margin,
|
||||||
|
height - 2 * t->margin);
|
||||||
|
|
||||||
opaque_margin = t->margin + t->frame_radius;
|
opaque_margin = t->margin + t->frame_radius;
|
||||||
|
|
||||||
wl_list_for_each(button, &frame->buttons_list, link)
|
wl_list_for_each(button, &frame->buttons_list, link)
|
||||||
|
|
@ -1290,13 +1297,6 @@ frame_resize_handler(struct widget *widget,
|
||||||
width = child->allocation.width + decoration_width;
|
width = child->allocation.width + decoration_width;
|
||||||
height = child->allocation.height + decoration_height;
|
height = child->allocation.height + decoration_height;
|
||||||
|
|
||||||
widget->window->input_region =
|
|
||||||
wl_compositor_create_region(display->compositor);
|
|
||||||
wl_region_add(widget->window->input_region,
|
|
||||||
t->margin, t->margin,
|
|
||||||
width - 2 * t->margin,
|
|
||||||
height - 2 * t->margin);
|
|
||||||
|
|
||||||
widget_set_allocation(widget, 0, 0, width, height);
|
widget_set_allocation(widget, 0, 0, width, height);
|
||||||
|
|
||||||
if (child->opaque) {
|
if (child->opaque) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue