From ee2da6a545cfdaadc1d1774fc46891f2b6695479 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Fri, 9 Dec 2022 15:54:22 +0100 Subject: [PATCH] focus: Keep focus when un-fullscreened With pointer focus modes, when un-fullscreening a focused window, focus was lost if the pointer landed in another window. https://git.enlightenment.org/e16/e16/issues/5 --- src/ewin-ops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ewin-ops.c b/src/ewin-ops.c index 75bba92b..1af090f9 100644 --- a/src/ewin-ops.c +++ b/src/ewin-ops.c @@ -1307,6 +1307,10 @@ EwinOpFullscreen(EWin * ewin, int source __UNUSED__, int on) EwinStateUpdate(ewin); EwinRaise(ewin); EwinMoveResize(ewin, x, y, w, h, MRF_KEEP_MAXIMIZED); + + /* Keep focus if focused */ + if (ewin->state.active) + FocusToEWin(ewin, FOCUS_SET); } HintsSetWindowState(ewin);