discomfitor pushed a commit to branch master.
commit 3a89244cd8d0eea793f497a68f2ca9f5e9e04602
Author: Mike Blumenkrantz <[email protected]>
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 6dd1e64..b6c5da7 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -8997,7 +8997,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) &&
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev