summaryrefslogtreecommitdiff
path: root/src/bin/e_comp_x.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2022-01-09 15:33:18 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2022-01-09 15:51:34 +0100
commit841c8f477f47bcb21b347d62332f87adc2d6d7d8 (patch)
treee6f830db5dd7356e2bfa301cb8754ac9e8fcf696 /src/bin/e_comp_x.c
parentaff854b2ea38ff2bbc79b35113a89cf5d69a1827 (diff)
downloadenlightenment-841c8f477f47bcb21b347d62332f87adc2d6d7d8.tar.gz
focus: do not revert to another client when client is unfocused
This was a nice idea to fix most focus bugs at once. However, due to the runtime of e many things can get "randomly" focused, for exmaple: volume control on the frame, internal dialogs, config value screens when grabbing for keys, widgets when they get created in a gadget. The list is quite long. However, fixing all those little bugs is hard and partly impossible as the behaviour is correct in the context of a toolkit, not in the context of a compositor. Long term we should split window-focus and canvas-focus from each other, then bugs like these would not be a problem anymore.
Diffstat (limited to 'src/bin/e_comp_x.c')
-rw-r--r--src/bin/e_comp_x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index 2c742c6167..8bc2c99d6f 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -2884,7 +2884,7 @@ _e_comp_x_focus_out(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_X_Event_
else if (ev->detail == ECORE_X_EVENT_DETAIL_INFERIOR)
return ECORE_CALLBACK_PASS_ON;
}
- evas_object_focus_set(ec->frame, 0);
+ e_client_revert_focus(ec);
return ECORE_CALLBACK_PASS_ON;
}