diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-10 22:24:47 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-10 22:24:47 +0000 |
| commit | 3f7ad89510b3182d69a9543f78637619eb13219f (patch) | |
| tree | 9a8618b4583f90ac14453c2e8c87d7876e2ae0cd | |
| parent | 49dd40d99ff2f55f3932d191b2e71faf5055a363 (diff) | |
let windows move themselves off the screen somewhat, but don't let them resize themselves off the screen (unless they're moving too)
| -rw-r--r-- | openbox/event.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c index 6314c9f7..2c243882 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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) |
