diff options
author | Danny Baumann <dannybaumann@web.de> | 2007-10-17 12:24:20 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2007-10-17 12:24:54 +0200 |
commit | c5a70817911ba392f17deb45835c043f330b0f5f (patch) | |
tree | 2e63b2985a91494ee65850188d04b66a953db2f5 | |
parent | 19876dff6e613d510f8b6e79649d1ce8b64027d9 (diff) |
Prevent wobbling when shading maximized windows.
-rw-r--r-- | plugins/wobbly.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/wobbly.c b/plugins/wobbly.c index 1f47fd56..163d114c 100644 --- a/plugins/wobbly.c +++ b/plugins/wobbly.c @@ -2323,6 +2323,10 @@ wobblyWindowResizeNotify (CompWindow *w, if (ws->opt[WOBBLY_SCREEN_OPTION_MAXIMIZE_EFFECT].value.b && isWobblyWin (w) && + /* prevent wobbling when shading maximized windows - assuming that + the height difference shaded - non-shaded will hardly be -1 and + a lack of wobbly animation in that corner case is tolerable */ + (dheight != -1) && ((w->state | ww->state) & MAXIMIZE_STATE)) { ww->state &= ~MAXIMIZE_STATE; |