summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-12-15 09:54:48 +0000
committersabetts <sabetts>2000-12-15 09:54:48 +0000
commit5a6f3339176ed223ba91d9fb5137b56eee1fd5db (patch)
tree9cbdbb164bdf6630896c8f7adfb1d06a4bfa4a98 /src/events.c
parente92d7ba918c1a7334e8bed0785949c2faf17f0dd (diff)
downloadratpoison-5a6f3339176ed223ba91d9fb5137b56eee1fd5db.zip
(property_notify): Added handler for XA_WM_NORMAL_HINTS.
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/events.c b/src/events.c
index 0bcffbe..3450da2 100644
--- a/src/events.c
+++ b/src/events.c
@@ -357,13 +357,25 @@ property_notify (XEvent *ev)
if (win)
{
- if (ev->xproperty.atom == XA_WM_NAME)
+ switch (ev->xproperty.atom)
{
+ case XA_WM_NAME:
PRINT_DEBUG ("updating window name\n");
if (update_window_name (win))
{
update_window_names (win->scr);
}
+ break;
+
+ case XA_WM_NORMAL_HINTS:
+ PRINT_DEBUG ("updating window normal hints\n");
+ update_normal_hints (win);
+ maximize (win);
+ break;
+
+ default:
+ PRINT_DEBUG ("Unhandled property notify event\n");
+ break;
}
}
}