mirror of
https://github.com/yshui/picom.git
synced 2024-11-18 13:55:36 -05:00
core: acquire X compositor selection first
Don't do anything with the overlay window with out the compositor selection. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
54aa6f2858
commit
39c48e3448
1 changed files with 5 additions and 4 deletions
|
@ -1830,6 +1830,11 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
|
||||||
|
|
||||||
rebuild_screen_reg(ps);
|
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
|
// Overlay must be initialized before double buffer, and before creation
|
||||||
// of OpenGL context.
|
// of OpenGL context.
|
||||||
if (!init_overlay(ps)) {
|
if (!init_overlay(ps)) {
|
||||||
|
@ -1879,10 +1884,6 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
|
||||||
|
|
||||||
cxinerama_upd_scrs(ps);
|
cxinerama_upd_scrs(ps);
|
||||||
|
|
||||||
// Create registration window
|
|
||||||
if (!ps->reg_win && !register_cm(ps))
|
|
||||||
exit(1);
|
|
||||||
|
|
||||||
{
|
{
|
||||||
xcb_render_create_picture_value_list_t pa = {
|
xcb_render_create_picture_value_list_t pa = {
|
||||||
.subwindowmode = IncludeInferiors,
|
.subwindowmode = IncludeInferiors,
|
||||||
|
|
Loading…
Reference in a new issue