]> Dogcows Code - chaz/openbox/commitdiff
dont impose staying on-screen for non-normal windows like kicker
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 18:35:21 +0000 (18:35 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 18:35:21 +0000 (18:35 +0000)
openbox/client.c

index eae55bcc8adbb13afd66f04411a0db39f174144d..a685c11e0fa0c26f33f16908a908c1744a0e9524 100644 (file)
@@ -551,14 +551,16 @@ gboolean client_find_onscreen(ObClient *self, int *x, int *y, int w, int h,
     /* XXX watch for xinerama dead areas */
 
     a = screen_area(self->desktop);
-    if (!self->strut.right && *x >= a->x + a->width - 1)
-        *x = a->x + a->width - self->frame->area.width;
-    if (!self->strut.bottom && *y >= a->y + a->height - 1)
-        *y = a->y + a->height - self->frame->area.height;
-    if (!self->strut.left && *x + self->frame->area.width - 1 < a->x)
-        *x = a->x;
-    if (!self->strut.top && *y + self->frame->area.height - 1 < a->y)
-        *y = a->y;
+    if (client_normal(self)) {
+        if (!self->strut.right && *x >= a->x + a->width - 1)
+            *x = a->x + a->width - self->frame->area.width;
+        if (!self->strut.bottom && *y >= a->y + a->height - 1)
+            *y = a->y + a->height - self->frame->area.height;
+        if (!self->strut.left && *x + self->frame->area.width - 1 < a->x)
+            *x = a->x;
+        if (!self->strut.top && *y + self->frame->area.height - 1 < a->y)
+            *y = a->y;
+    }
 
     if (rude) {
         /* this is my MOZILLA BITCHSLAP. oh ya it fucking feels good.
This page took 0.029104 seconds and 4 git commands to generate.