forked from enlightenment/enlightenment
focus x11 root window on init when starting with xwayland
comp canvas does not have a valid xwindow and is unfocusable
This commit is contained in:
parent
04ef45f55d
commit
5ddb8779e2
|
@ -5554,7 +5554,10 @@ _e_comp_x_setup(Ecore_X_Window root, int w, int h)
|
||||||
if (!e_comp_canvas_init(w, h)) return EINA_FALSE;
|
if (!e_comp_canvas_init(w, h)) return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e_comp->comp_type == E_PIXMAP_TYPE_X)
|
||||||
e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
|
e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
|
||||||
|
else
|
||||||
|
e_grabinput_focus(e_comp->root, E_FOCUS_METHOD_PASSIVE);
|
||||||
|
|
||||||
/* init layers */
|
/* init layers */
|
||||||
for (i = e_comp_canvas_layer_map(E_LAYER_CLIENT_DESKTOP); i <= e_comp_canvas_layer_map(E_LAYER_CLIENT_PRIO); i++)
|
for (i = e_comp_canvas_layer_map(E_LAYER_CLIENT_DESKTOP); i <= e_comp_canvas_layer_map(E_LAYER_CLIENT_PRIO); i++)
|
||||||
|
|
Loading…
Reference in New Issue