discomfitor pushed a commit to branch master.

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

commit 5ad876ccad4cc6bb0529adf62667d6f30d3d29fe
Author: Mike Blumenkrantz <[email protected]>
Date:   Sun Jun 8 12:13:02 2014 -0400

    block mouse actions on frame for iconic clients
    
    fix T1069
---
 src/bin/e_client.c      | 4 +++-
 src/bin/e_comp_object.c | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index 662e913..c517ae5 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -2566,7 +2566,7 @@ EAPI void
 e_client_mouse_down(E_Client *ec, int button, Evas_Point *output, 
E_Binding_Event_Mouse_Button *ev)
 {
    EINA_SAFETY_ON_NULL_RETURN(ec);
-   if (action_client) return;
+   if (action_client || ec->iconic) return;
    if ((button >= 1) && (button <= 3))
      {
         ec->mouse.last_down[button - 1].mx = output->x;
@@ -2624,6 +2624,7 @@ EAPI void
 e_client_mouse_up(E_Client *ec, int button, Evas_Point *output, 
E_Binding_Event_Mouse_Button* ev)
 {
    EINA_SAFETY_ON_NULL_RETURN(ec);
+   if (ec->iconic) return;
    if ((button >= 1) && (button <= 3))
      {
         ec->mouse.last_up[button - 1].mx = output->x;
@@ -2664,6 +2665,7 @@ EAPI void
 e_client_mouse_move(E_Client *ec, Evas_Point *output)
 {
    EINA_SAFETY_ON_NULL_RETURN(ec);
+   if (ec->iconic) return;
    ec->mouse.current.mx = output->x;
    ec->mouse.current.my = output->y;
    if (ec->moving)
diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index e674460..e6523fe 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -246,10 +246,10 @@ _e_comp_object_cb_signal_bind(void *data, Evas_Object 
*obj EINA_UNUSED, const ch
 {
    E_Comp_Object *cw = data;
 
-   if (!cw->ec) return;
 #ifndef HAVE_WAYLAND_ONLY
    if (e_dnd_active()) return;
 #endif
+   if (cw->ec->iconic) return;
    e_bindings_signal_handle(E_BINDING_CONTEXT_WINDOW, E_OBJECT(cw->ec),
                             emission, source);
 }

-- 


Reply via email to