diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2020-11-01 21:37:50 +0100 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2020-11-01 21:37:50 +0100 |
commit | d4ea89aff91fa40ca3ca35fc25d44e8140fb5b26 (patch) | |
tree | 0aced32539fbe71a1cc8cee29af93e8303669d55 | |
parent | 50d34206fd3f01e71a16627821bbecc90c53a95e (diff) | |
download | xfwm4-d4ea89aff91fa40ca3ca35fc25d44e8140fb5b26.tar.gz |
compositor: Do not try to clip opaque region if none
If the window has no opaque region, no point in trying to clip it out
and return immediately.
No functional change.
Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
-rw-r--r-- | src/compositor.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/compositor.c b/src/compositor.c index 4c1785078..c4e6484a1 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2149,11 +2149,6 @@ clip_opaque_region (CWindow *cw, XserverRegion region) g_return_if_fail (cw != NULL); TRACE ("window 0x%lx", cw->id); - if (cw->opaque_region == None) - { - return; - } - screen_info = cw->screen_info; display_info = screen_info->display_info; @@ -2296,7 +2291,7 @@ paint_all (ScreenInfo *screen_info, XserverRegion region, gushort buffer) XFixesCopyRegion (dpy, cw->borderClip, paint_region); } - if (cw->opacity == NET_WM_OPAQUE) + if ((cw->opacity == NET_WM_OPAQUE) && (cw->opaque_region != None)) { clip_opaque_region (cw, paint_region); } |