Commit 6fc51e37 authored by Jasper St. Pierre's avatar Jasper St. Pierre

window-x11: Fix checks for a bounding region input region

When cleaning up the logic in commit c408cf7a, I forgot to properly apply
de Morgan's laws to an inverse.

Reported by ricotz on IRC.
parent af45a50c
......@@ -1732,9 +1732,9 @@ meta_window_x11_update_input_region (MetaWindow *window)
region = cairo_region_create ();
}
else if (n_rects == 1 &&
(rects[0].x == 0 ||
rects[0].y == 0 ||
rects[0].width == priv->client_rect.width ||
(rects[0].x == 0 &&
rects[0].y == 0 &&
rects[0].width == priv->client_rect.width &&
rects[0].height == priv->client_rect.height))
{
/* This is the bounding region case. Keep the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment