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, 4 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 2a705e50..08240ff2 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -776,7 +776,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
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 @@ static void event_handle_client(ObClient *client, XEvent *e)
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);