diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-09-23 19:39:57 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-09-23 19:39:57 +0200 |
| commit | 69b3136545dac1a06fe750eaf89c2415574a455c (patch) | |
| tree | 0adc3d9155fc33bf0438c7ef3e6ecbfbecd7285f /unity-shared | |
| parent | 51286afd3e20c6e61421043fcea65c9beb0eb543 (diff) | |
CompizUtils: don't (shadow)decorate windows that have a region mismatching their geometry
This means that windows using XShape extensions to define a region that is different to the actual window geometry, should not be decorated Fixes LP: #1364225 (bzr r3806.12.6)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/CompizUtils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unity-shared/CompizUtils.cpp b/unity-shared/CompizUtils.cpp index be197c73e..c150b1451 100644 --- a/unity-shared/CompizUtils.cpp +++ b/unity-shared/CompizUtils.cpp @@ -179,6 +179,8 @@ bool IsWindowShadowDecorable(CompWindow* win) if (win->region().numRects() != 1) // Non rectangular windows return false; + else if (win->region().boundingRect() != win->geometry()) + return false; if (win->alpha()) return WindowHasMotifDecorations(win); |
