cedric pushed a commit to branch enlightenment-0.17.

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

commit 97dc3089917398bfd2eb9e212c25495aed396e1e
Author: Mike Blumenkrantz <m.blumenk...@samsung.com>
Date:   Wed Jul 3 09:45:46 2013 +0100

    bugfix: focus setting on modal dialogs which are not 
ECORE_X_WINDOW_TYPE_DIALOG
---
 src/bin/e_border.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 21c3914..8b85260 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -9208,7 +9208,8 @@ _e_border_eval(E_Border *bd)
              bd->want_focus = 0;
              e_border_focus_set_with_pointer(bd);
           }
-        else if (bd->client.netwm.type == ECORE_X_WINDOW_TYPE_DIALOG)
+        else if ((bd->client.netwm.type == ECORE_X_WINDOW_TYPE_DIALOG) ||
+                 (bd->parent && (bd->parent->modal == bd)))
           {
              if ((e_config->focus_setting == E_FOCUS_NEW_DIALOG) ||
                  ((e_config->focus_setting == 
E_FOCUS_NEW_DIALOG_IF_OWNER_FOCUSED) &&

-- 


Reply via email to