summaryrefslogtreecommitdiff
path: root/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-08-27 21:34:27 +0000
committersabetts <sabetts>2000-08-27 21:34:27 +0000
commite1306eafc699df1358faa9860ebf2fc6440274dd (patch)
tree4bf24dca4072105c00c22d6d110f0e845fcddf31 /events.c
parente324b974b06b54e9e568caa0b61535ad46baceba (diff)
downloadratpoison-e1306eafc699df1358faa9860ebf2fc6440274dd.zip
Fixed the ClassHints crashes by using the GetWMName function instead
(The way we're supposed to do it).
Diffstat (limited to 'events.c')
-rw-r--r--events.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/events.c b/events.c
index 5b12536..02e034c 100644
--- a/events.c
+++ b/events.c
@@ -285,6 +285,22 @@ key_press (XEvent *ev)
}
}
+/* Not complete. I just update the name everytime, but I should really
+ check what kind of property update it is. */
+void
+property_notify (XEvent *ev)
+{
+ rp_window *win;
+
+ win = find_window (ev->xproperty.window);
+
+ if (win)
+ {
+ printf ("updating window name\n");
+ update_window_name (win);
+ }
+}
+
/* Given an event, call the correct function to handle it. */
void
delegate_event (XEvent *ev)
@@ -314,6 +330,7 @@ delegate_event (XEvent *ev)
printf ("ColormapNotify\n");
break;
case PropertyNotify:
+ property_notify (ev);
printf ("PropertyNotify\n");
break;
case SelectionClear: