diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/libxcwm/atoms.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 700835a..b848f5b 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AC_PROG_OBJC AC_PROG_INSTALL # Checks for libraries. -NEEDED="xcb-damage xcb-composite xcb-event xcb-xtest xcb-image xcb-keysyms xcb-icccm xcb-atom xcb-ewmh" +NEEDED="xcb-damage xcb-composite xcb-event xcb-xtest xcb-image xcb-keysyms xcb-icccm >= 0.3.9 xcb-atom xcb-ewmh" PKG_CHECK_MODULES(XCB, $NEEDED) AC_SUBST(NEEDED) diff --git a/src/libxcwm/atoms.c b/src/libxcwm/atoms.c index 00620f5..fc810f1 100644 --- a/src/libxcwm/atoms.c +++ b/src/libxcwm/atoms.c @@ -202,7 +202,11 @@ create_wm_cm_window(xcwm_context_t *context) strlen("xcwm"), "xcwm"); xcb_ewmh_set_supporting_wm_check(&context->atoms->ewmh_conn, - context->conn_screen, + context->root_window->window_id, + context->wm_cm_window); + + xcb_ewmh_set_supporting_wm_check(&context->atoms->ewmh_conn, + context->wm_cm_window, context->wm_cm_window); } |