forked from enlightenment/enlightenment
disable bindings during wayland screenshot operations
recursive action activation is very bad.
This commit is contained in:
parent
446f9c4b68
commit
edba13322a
|
@ -955,6 +955,7 @@ _wl_shot_now(E_Zone *zone, E_Client *ec, const char *params)
|
||||||
|
|
||||||
shm = e_comp_wl->wl.shm ?: ecore_wl2_display_shm_get(e_comp_wl->wl.client_disp);
|
shm = e_comp_wl->wl.shm ?: ecore_wl2_display_shm_get(e_comp_wl->wl.client_disp);
|
||||||
|
|
||||||
|
e_bindings_disabled_set(1);
|
||||||
EINA_LIST_FOREACH(_outputs, l, output)
|
EINA_LIST_FOREACH(_outputs, l, output)
|
||||||
{
|
{
|
||||||
if ((!zone) &&
|
if ((!zone) &&
|
||||||
|
@ -971,6 +972,7 @@ _wl_shot_now(E_Zone *zone, E_Client *ec, const char *params)
|
||||||
while (!copy_done)
|
while (!copy_done)
|
||||||
ecore_main_loop_iterate();
|
ecore_main_loop_iterate();
|
||||||
}
|
}
|
||||||
|
e_bindings_disabled_set(0);
|
||||||
|
|
||||||
bstride = sw * sizeof(int);
|
bstride = sw * sizeof(int);
|
||||||
dst = malloc(bstride * sh);
|
dst = malloc(bstride * sh);
|
||||||
|
|
Loading…
Reference in New Issue