summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-28 19:53:54 +0000
committerDana Jansens <danakj@orodu.net>2003-07-28 19:53:54 +0000
commit4d82dd3017655aef64893897bc12064e5c51469d (patch)
tree721d7cd6bbcab6d4544bc8a2d055dcbb21241663 /openbox/event.c
parente6486bff0881de6ba710a39f013cfbaf03657467 (diff)
make the new placement restrictions not affect !normal windows like panels
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbox/event.c b/openbox/event.c
index e1ab8fef..2a705e50 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -776,7 +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_normal(client)) {
int newx = x;
int newy = y;
client_find_onscreen(client, &newx, &newy, w, h, TRUE);
@@ -974,7 +974,7 @@ static void event_handle_client(ObClient *client, XEvent *e)
h = client->area.y;
client->gravity = tmpg;
- {
+ if (client_normal(client)) {
int newx = x;
int newy = y;
client_find_onscreen(client, &newx, &newy, w, h, TRUE);
@@ -1031,8 +1031,10 @@ static void event_handle_client(ObClient *client, XEvent *e)
client_update_protocols(client);
client_setup_decor_and_functions(client);
}
- else if (msgtype == prop_atoms.net_wm_strut)
+ else if (msgtype == prop_atoms.net_wm_strut) {
+ g_message("strut change");
client_update_strut(client);
+ }
else if (msgtype == prop_atoms.net_wm_icon ||
msgtype == prop_atoms.kwm_win_icon)
client_update_icons(client);