]> git.sur5r.net Git - i3/i3/blobdiff - src/main.c
implement support for WM_TRANSIENT_FOR, expand testcase
[i3/i3] / src / main.c
index 6ca3075ea2767e6a0d8267fe5115e1160ba8970e..787ff6fb0b1a1bd623ccf79c91fa009204a2134a 100644 (file)
@@ -270,6 +270,9 @@ int main(int argc, char *argv[]) {
     /* 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);
 
+    /* Watch WM_TRANSIENT_FOR property (to which client this popup window belongs) */
+    xcb_property_set_handler(&prophs, WM_TRANSIENT_FOR, UINT_MAX, handle_transient_for, 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 */