all repos — openbox @ a32c2c125c8fb915d3693225bc1049876e5636ca

openbox fork - make it a bit more like ryudo

dont be rude to non-normal windows with keeping them onscreen
Dana Jansens danakj@orodu.net
commit

a32c2c125c8fb915d3693225bc1049876e5636ca

parent

9a0c31797a73534c65b66e5299c6089de4e5b757

2 files changed, 5 insertions(+), 3 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -310,7 +310,7 @@ dispatch_client(Event_Client_New, self, 0, 0);

/* 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);
M openbox/event.copenbox/event.c

@@ -805,7 +805,8 @@ int fw = w +

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 @@ int fw = w +

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)