From 91770e35f860e58ef08bbe927050c3c9986727d2 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 30 Jan 2019 23:10:25 +0000 Subject: [PATCH] e focus - fix to previous commit to restore keybinds on last win del i didn't notice, but if you delete all windows on a desktop then no keybinding work. i needed t use my commented out workaround actually and then a bit. @fix --- src/bin/e_comp_x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c index 705daa5a3..37a631e53 100644 --- a/src/bin/e_comp_x.c +++ b/src/bin/e_comp_x.c @@ -144,18 +144,18 @@ _e_comp_x_focus_check(void) // e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE); // This might be more specific a workaround bit might miss other cases, so keep // here as an idea and for future reference -/* else { - Ecore_X_Window *focus_win = ecore_x_window_focus_get(); + Ecore_X_Window focus_win = ecore_x_window_focus_get(); if (focus_win) { if ((ecore_x_window_root_get(focus_win) == focus_win) || (!ecore_x_icccm_transient_for_get(focus_win))) e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE); } + else + e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE); } - */ } }