discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b1fd48af59ef46b7edc5906c86819138103fbee9

commit b1fd48af59ef46b7edc5906c86819138103fbee9
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Jan 23 08:50:02 2014 -0500

    don't double grab compositor input during client actions
    
    T844
---
 src/bin/e_client.c | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index 0ba90cb..30ed86f 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -631,6 +631,11 @@ _e_client_cb_ping_poller(void *data)
 static int
 _e_client_action_input_win_new(E_Client *ec)
 {
+   if (comp_grabbed)
+     {
+        CRI("DOUBLE COMP GRAB! ACK!!!!");
+        return 1;
+     }
    comp_grabbed = e_comp_grab_input(ec->comp, 1, 1);
    if (!comp_grabbed) _e_client_action_input_win_del(ec->comp);
    return comp_grabbed;
@@ -3735,12 +3740,6 @@ e_client_act_move_keyboard(E_Client *ec)
    if (!_e_client_move_begin(ec))
      return;
 
-   if (!_e_client_action_input_win_new(ec))
-     {
-        _e_client_move_end(ec);
-        return;
-     }
-
    _e_client_action_init(ec);
    _e_client_action_move_timeout_add();
    if (!_e_client_hook_call(E_CLIENT_HOOK_MOVE_UPDATE, ec)) return;
@@ -3779,12 +3778,6 @@ e_client_act_move_begin(E_Client *ec, 
E_Binding_Event_Mouse_Button *ev)
    if (!_e_client_move_begin(ec))
      return;
 
-   if (!_e_client_action_input_win_new(ec))
-     {
-        _e_client_move_end(ec);
-        return;
-     }
-   _e_client_action_init(ec);
    e_zone_edge_disable();
    ec->moving = 1;
    e_pointer_mode_push(ec, E_POINTER_MOVE);

-- 


Reply via email to