diff --git a/src/compton.c b/src/compton.c index c962c46e..82e911aa 100644 --- a/src/compton.c +++ b/src/compton.c @@ -1830,6 +1830,11 @@ static session_t *session_init(int argc, char **argv, Display *dpy, rebuild_screen_reg(ps); + // Create registration window + if (!ps->reg_win && !register_cm(ps)) { + exit(1); + } + // Overlay must be initialized before double buffer, and before creation // of OpenGL context. if (!init_overlay(ps)) { @@ -1879,10 +1884,6 @@ static session_t *session_init(int argc, char **argv, Display *dpy, cxinerama_upd_scrs(ps); - // Create registration window - if (!ps->reg_win && !register_cm(ps)) - exit(1); - { xcb_render_create_picture_value_list_t pa = { .subwindowmode = IncludeInferiors,