mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
window-x11: Fix checks for a bounding region input region
When cleaning up the logic in commitc408cf7
, I forgot to properly apply de Morgan's laws to an inverse. Reported by ricotz on IRC. (cherry picked from commit6fc51e3723
)
This commit is contained in:
parent
02484cf66f
commit
fe4b650ebb
@ -1727,9 +1727,9 @@ meta_window_x11_update_input_region (MetaWindow *window)
|
|||||||
region = cairo_region_create ();
|
region = cairo_region_create ();
|
||||||
}
|
}
|
||||||
else if (n_rects == 1 &&
|
else if (n_rects == 1 &&
|
||||||
(rects[0].x == 0 ||
|
(rects[0].x == 0 &&
|
||||||
rects[0].y == 0 ||
|
rects[0].y == 0 &&
|
||||||
rects[0].width == priv->client_rect.width ||
|
rects[0].width == priv->client_rect.width &&
|
||||||
rects[0].height == priv->client_rect.height))
|
rects[0].height == priv->client_rect.height))
|
||||||
{
|
{
|
||||||
/* This is the bounding region case. Keep the
|
/* This is the bounding region case. Keep the
|
||||||
|
Loading…
Reference in New Issue
Block a user