]> git.sur5r.net Git - i3/i3/blobdiff - src/main.c
Implement support for WM_CLIENT_LEADER
[i3/i3] / src / main.c
index 417c2b27d881713e9005150bffc500aef987ebe5..6ca3075ea2767e6a0d8267fe5115e1160ba8970e 100644 (file)
@@ -267,6 +267,9 @@ int main(int argc, char *argv[]) {
     /* Watch WM_NORMAL_HINTS (aspect ratio, size increments, …) */
     xcb_property_set_handler(&prophs, WM_NORMAL_HINTS, UINT_MAX, handle_normal_hints, NULL);
 
+    /* Watch WM_CLIENT_LEADER (= logical parent window for toolbars etc.) */
+    xcb_property_set_handler(&prophs, atoms[WM_CLIENT_LEADER], UINT_MAX, handle_clientleader_change, NULL);
+
     /* Set up the atoms we support */
     xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, atoms[_NET_SUPPORTED], ATOM, 32, 7, atoms);
     /* Set up the window manager’s name */