diff options
Diffstat (limited to 'src/mwindowpropertycache.h')
-rw-r--r-- | src/mwindowpropertycache.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mwindowpropertycache.h b/src/mwindowpropertycache.h index cba854f..3611347 100644 --- a/src/mwindowpropertycache.h +++ b/src/mwindowpropertycache.h @@ -95,7 +95,8 @@ public: if (!shape_rects_valid) shapeRegion(); shape_rects_valid = false; - xcb_shape_rects_cookie = xcb_shape_get_rectangles(xcb_conn, window, + xcb_shape_rects_cookie = xcb_shape_get_rectangles_unchecked(xcb_conn, + window, ShapeBounding); } @@ -256,7 +257,7 @@ public: void damageTracking(bool enabled) { - if (damage_object && enabled) + if (!is_valid || (damage_object && enabled)) return; if (damage_object && !enabled) { XDamageDestroy(QX11Info::display(), damage_object); |