base rudeness on if they have a strut or not

This commit is contained in:
Dana Jansens 2003-07-28 19:56:52 +00:00
parent 4d82dd3017
commit 067776e783
2 changed files with 6 additions and 3 deletions

View file

@ -300,7 +300,8 @@ void client_manage(Window window)
dispatch_client(Event_Client_New, self, 0, 0); dispatch_client(Event_Client_New, self, 0, 0);
/* make sure the window is visible */ /* 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); client_move_onscreen(self, TRUE);
screen_update_areas(); screen_update_areas();

View file

@ -776,7 +776,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
h = (e->xconfigurerequest.value_mask & CWHeight) ? h = (e->xconfigurerequest.value_mask & CWHeight) ?
e->xconfigurerequest.height : client->area.height; 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 newx = x;
int newy = y; int newy = y;
client_find_onscreen(client, &newx, &newy, w, h, TRUE); client_find_onscreen(client, &newx, &newy, w, h, TRUE);
@ -974,7 +975,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
h = client->area.y; h = client->area.y;
client->gravity = tmpg; client->gravity = tmpg;
if (client_normal(client)) { if (!(client->strut.left || client->strut.right ||
client->strut.top || client->strut.bottom)) {
int newx = x; int newx = x;
int newy = y; int newy = y;
client_find_onscreen(client, &newx, &newy, w, h, TRUE); client_find_onscreen(client, &newx, &newy, w, h, TRUE);