diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-27 18:50:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-27 18:50:12 +0000 |
| commit | a32c2c125c8fb915d3693225bc1049876e5636ca (patch) | |
| tree | 25631651a7debc23e2255c27a7f245db7135e582 /openbox | |
| parent | 9a0c31797a73534c65b66e5299c6089de4e5b757 (diff) | |
dont be rude to non-normal windows with keeping them onscreen
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 2 | ||||
| -rw-r--r-- | openbox/event.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index f1dc11aa..dcde212e 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -310,7 +310,7 @@ void client_manage(Window window) /* make sure the window is visible */ if (ob_state() == OB_STATE_RUNNING) - client_move_onscreen(self, TRUE); + client_move_onscreen(self, client_normal(self)); client_showhide(self); diff --git a/openbox/event.c b/openbox/event.c index b1a70dd4..bbd87a9d 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -805,7 +805,8 @@ static void event_handle_client(ObClient *client, XEvent *e) client->frame->size.left + client->frame->size.right; int fh = h + client->frame->size.top + client->frame->size.bottom; - client_find_onscreen(client, &newx, &newy, fw, fh, TRUE); + client_find_onscreen(client, &newx, &newy, fw, fh, + client_noral(self)); if (e->xconfigurerequest.value_mask & CWX) x = newx; if (e->xconfigurerequest.value_mask & CWY) @@ -1008,7 +1009,8 @@ static void event_handle_client(ObClient *client, XEvent *e) client->frame->size.left + client->frame->size.right; int fh = h + client->frame->size.top + client->frame->size.bottom; - client_find_onscreen(client, &newx, &newy, fw, fh, TRUE); + client_find_onscreen(client, &newx, &newy, fw, fh, + client_normal(self)); if (e->xclient.data.l[0] & 1 << 8) x = newx; if (e->xclient.data.l[0] & 1 << 9) |
