diff options
author | sabetts <sabetts> | 2000-12-15 09:54:48 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-12-15 09:54:48 +0000 |
commit | 5a6f3339176ed223ba91d9fb5137b56eee1fd5db (patch) | |
tree | 9cbdbb164bdf6630896c8f7adfb1d06a4bfa4a98 /src/events.c | |
parent | e92d7ba918c1a7334e8bed0785949c2faf17f0dd (diff) | |
download | ratpoison-5a6f3339176ed223ba91d9fb5137b56eee1fd5db.zip |
(property_notify): Added handler for XA_WM_NORMAL_HINTS.
Diffstat (limited to 'src/events.c')
-rw-r--r-- | src/events.c | 14 |
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; } } } |