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. #5
This commit is contained in:
parent
a90ac65bd7
commit
ee2da6a545
|
@ -1307,6 +1307,10 @@ EwinOpFullscreen(EWin * ewin, int source __UNUSED__, int on)
|
||||||
EwinStateUpdate(ewin);
|
EwinStateUpdate(ewin);
|
||||||
EwinRaise(ewin);
|
EwinRaise(ewin);
|
||||||
EwinMoveResize(ewin, x, y, w, h, MRF_KEEP_MAXIMIZED);
|
EwinMoveResize(ewin, x, y, w, h, MRF_KEEP_MAXIMIZED);
|
||||||
|
|
||||||
|
/* Keep focus if focused */
|
||||||
|
if (ewin->state.active)
|
||||||
|
FocusToEWin(ewin, FOCUS_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
HintsSetWindowState(ewin);
|
HintsSetWindowState(ewin);
|
||||||
|
|
Loading…
Reference in New Issue