summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
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);