all repos — openbox @ 067776e783fc0cb4a731c8ea226c8b6b3c50f053

openbox fork - make it a bit more like ryudo

base rudeness on if they have a strut or not
Dana Jansens danakj@orodu.net
commit

067776e783fc0cb4a731c8ea226c8b6b3c50f053

parent

4d82dd3017655aef64893897bc12064e5c51469d

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

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

@@ -300,7 +300,8 @@

dispatch_client(Event_Client_New, self, 0, 0); /* make sure the window is visible */ - if (client_normal(self)) + if (!(self->strut.left || self->strut.right || + self->strut.top || self->strut.bottom)) client_move_onscreen(self, TRUE); screen_update_areas();
M openbox/event.copenbox/event.c

@@ -776,7 +776,8 @@ e->xconfigurerequest.width : client->area.width;

h = (e->xconfigurerequest.value_mask & CWHeight) ? e->xconfigurerequest.height : client->area.height; - if (client_normal(client)) { + if (!(client->strut.left || client->strut.right || + client->strut.top || client->strut.bottom)) { int newx = x; int newy = y; client_find_onscreen(client, &newx, &newy, w, h, TRUE);

@@ -974,7 +975,8 @@ else

h = client->area.y; client->gravity = tmpg; - if (client_normal(client)) { + if (!(client->strut.left || client->strut.right || + client->strut.top || client->strut.bottom)) { int newx = x; int newy = y; client_find_onscreen(client, &newx, &newy, w, h, TRUE);