mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-25 14:25:58 +01:00
fix some lost keybinds
This commit is contained in:
parent
88546490ea
commit
c4cd0b1ca8
1 changed files with 9 additions and 7 deletions
|
@ -444,13 +444,13 @@ void CWindowManager::setFocusedWindow(xcb_drawable_t window) {
|
|||
LastWindow = window;
|
||||
|
||||
applyShapeToWindow(g_pWindowManager->getWindowFromDrawable(window));
|
||||
|
||||
// set focus in X11
|
||||
xcb_set_input_focus(DisplayConnection, XCB_INPUT_FOCUS_POINTER_ROOT, window, XCB_CURRENT_TIME);
|
||||
|
||||
// EWMH
|
||||
EWMH::updateCurrentWindow(LastWindow);
|
||||
}
|
||||
|
||||
// EWMH
|
||||
EWMH::updateCurrentWindow(window);
|
||||
|
||||
// set focus in X11
|
||||
xcb_set_input_focus(DisplayConnection, XCB_INPUT_FOCUS_POINTER_ROOT, window, XCB_CURRENT_TIME);
|
||||
}
|
||||
|
||||
// TODO: make this executed less. It's too often imo.
|
||||
|
@ -1645,8 +1645,10 @@ void CWindowManager::refocusWindowOnClosed() {
|
|||
const auto PWINDOW = findWindowAtCursor();
|
||||
|
||||
// No window or last window valid
|
||||
if (!PWINDOW || getWindowFromDrawable(LastWindow))
|
||||
if (!PWINDOW || getWindowFromDrawable(LastWindow)) {
|
||||
setFocusedWindow(Screen->root); //refocus on root
|
||||
return;
|
||||
}
|
||||
|
||||
LastWindow = PWINDOW->getDrawable();
|
||||
|
||||
|
|
Loading…
Reference in a new issue