summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-01-22 16:31:07 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-02 13:37:40 -0500
commita372e5ba1b248c36db4cc00c7ea12f6ab326da12 (patch)
treef91ed770f1d4cc46e4b5647460235136e13c1483
parente5e2a7cca4bf86ee70444b52ec0640888601d503 (diff)
disable bindings during wayland screenshot operations
recursive action activation is very bad.
-rw-r--r--src/modules/shot/e_mod_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 1663a9ee7..dfec8f99c 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -955,6 +955,7 @@ _wl_shot_now(E_Zone *zone, E_Client *ec, const char *params)
955 955
956 shm = e_comp_wl->wl.shm ?: ecore_wl2_display_shm_get(e_comp_wl->wl.client_disp); 956 shm = e_comp_wl->wl.shm ?: ecore_wl2_display_shm_get(e_comp_wl->wl.client_disp);
957 957
958 e_bindings_disabled_set(1);
958 EINA_LIST_FOREACH(_outputs, l, output) 959 EINA_LIST_FOREACH(_outputs, l, output)
959 { 960 {
960 if ((!zone) && 961 if ((!zone) &&
@@ -971,6 +972,7 @@ _wl_shot_now(E_Zone *zone, E_Client *ec, const char *params)
971 while (!copy_done) 972 while (!copy_done)
972 ecore_main_loop_iterate(); 973 ecore_main_loop_iterate();
973 } 974 }
975 e_bindings_disabled_set(0);
974 976
975 bstride = sw * sizeof(int); 977 bstride = sw * sizeof(int);
976 dst = malloc(bstride * sh); 978 dst = malloc(bstride * sh);