summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-28 19:59:37 +0000
committerDana Jansens <danakj@orodu.net>2003-07-28 19:59:37 +0000
commitb799cfd9a394124456f7f765e0858981639f737a (patch)
tree2a68d88bdcc1dc7e3308b1c0d28e37914582abbe /openbox/event.c
parent067776e783fc0cb4a731c8ea226c8b6b3c50f053 (diff)
base rudeness on if they have a strut even smarter!
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 08240ff2..5116148c 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -776,8 +776,7 @@ static void event_handle_client(ObClient *client, XEvent *e)
h = (e->xconfigurerequest.value_mask & CWHeight) ?
e->xconfigurerequest.height : client->area.height;
- 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);
@@ -975,8 +974,7 @@ static void event_handle_client(ObClient *client, XEvent *e)
h = client->area.y;
client->gravity = tmpg;
- 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);