]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
yay! gravity finally works right!
[chaz/openbox] / openbox / frame.c
index 3565f54ee0d4c2080b95792f4bc29755f21fd0af..2cd758699892fcf701864700e240b1bc83978361 100644 (file)
@@ -262,6 +262,9 @@ void frame_hide(ObFrame *self)
         self->visible = FALSE;
         if (!frame_iconify_animating(self))
             XUnmapWindow(ob_display, self->window);
+        /* unmap the plate along with the client. some people (libwnck) look
+           to see if it is unmapped when the client is iconified, for whatever
+           reason. so let's play along... */
         XUnmapWindow(ob_display, self->plate);
         /* we unmap the client itself so that we can get MapRequest
            events, and because the ICCCM tells us to! */
@@ -1383,7 +1386,7 @@ void frame_frame_gravity(ObFrame *self, gint *x, gint *y, gint w, gint h)
     case StaticGravity:
     case ForgetGravity:
         /* the client's position won't move */
-        *x -= self->size.left;
+        *x += self->size.left;
         break;
     }
 
This page took 0.021212 seconds and 4 git commands to generate.