summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Frank Erikson <kristian@kristian-desktop.(none)>2008-12-07 22:14:49 +1300
committerKristian Frank Erikson <kristian@kristian-desktop.(none)>2008-12-07 22:14:49 +1300
commitcfd3b8501cbb8cfa04447dd0a122f88107aeaa64 (patch)
treebe9d74b864c90a81eacd259c317ecc229649beb5
parent9c3dca7e343dec5c768205d7fab6a8a30daae7a1 (diff)
downloadcf-squeeze-cfd3b8501cbb8cfa04447dd0a122f88107aeaa64.tar.gz
cf-squeeze-cfd3b8501cbb8cfa04447dd0a122f88107aeaa64.tar.bz2
Fixed bug of maximized windows snapping back to maximized after squeeze
-rw-r--r--squeeze.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/squeeze.c b/squeeze.c
index d6ec676..aca8f86 100644
--- a/squeeze.c
+++ b/squeeze.c
@@ -587,7 +587,9 @@ squeezeInitiateCommon (CompDisplay *d,
{
CompScreen *s = w->screen;
- //Don't squeeze to windows that can't squeeze
+ //If window maximized first unmaximize
+ maximizeWindow (w, 0);
+
// Core has a function that looks useful: minimizeWindow
if (w->type & (CompWindowTypeDesktopMask |
CompWindowTypeDockMask |