]> Dogcows Code - chaz/openbox/commitdiff
let windows move themselves off the screen somewhat, but don't let them resize themse...
authorDana Jansens <danakj@orodu.net>
Sat, 10 Mar 2007 22:24:47 +0000 (22:24 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 10 Mar 2007 22:24:47 +0000 (22:24 +0000)
openbox/event.c

index 6314c9f79640029f614f4f8c2e0991550e7c1ec7..2c243882a079b71b57ee2b32f247d73ed245e717 100644 (file)
@@ -858,8 +858,13 @@ static void event_handle_client(ObClient *client, XEvent *e)
                      client->frame->size.left + client->frame->size.right;
                 gint fh = h +
                      client->frame->size.top + client->frame->size.bottom;
+                /* make this rude for size-only changes but not for position
+                   changes.. */
+                gboolean moving = ((e->xconfigurerequest.value_mask & CWX) ||
+                                   (e->xconfigurerequest.value_mask & CWY));
+
                 client_find_onscreen(client, &newx, &newy, fw, fh,
-                                     FALSE);
+                                     !moving);
                 if (e->xconfigurerequest.value_mask & CWX)
                     x = newx;
                 if (e->xconfigurerequest.value_mask & CWY)
This page took 0.025123 seconds and 4 git commands to generate.