]> Dogcows Code - chaz/openbox/commitdiff
ignore maximized windows in smart placement
authorMikael Magnusson <mikachu@comhem.se>
Fri, 4 May 2007 14:30:58 +0000 (14:30 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 4 May 2007 14:30:58 +0000 (14:30 +0000)
openbox/place.c

index 1ac295c0779b2758a27ae93230be1536758e3996..8003270eb0e04f6afe4ee99cae683b96d2127224 100644 (file)
@@ -282,7 +282,7 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y,
 
             if (WINDOW_IS_CLIENT(it->data)) {
                 c = it->data;
-                if (c->fullscreen)
+                if (c->fullscreen || (c->max_vert && c->max_horz))
                     continue;
             } else
                 continue;
@@ -306,7 +306,7 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y,
 
                 if (WINDOW_IS_CLIENT(it->data)) {
                     c = it->data;
-                    if (c->fullscreen)
+                    if (c->fullscreen || (c->max_vert && c->max_horz))
                         continue;
                 } else
                     continue;
This page took 0.024614 seconds and 4 git commands to generate.