mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-08-14 21:20:17 +00:00
Run focus handling when selecting a focused transient window
Selecting an already focused window with a transient would not trigger a proper focus signal.
This commit is contained in:
+3
-1
@@ -287,7 +287,9 @@ var Navigator = class Navigator {
|
||||
(!force ||
|
||||
!(display.focus_window && display.focus_window.is_on_all_workspaces())) ) {
|
||||
|
||||
if (selected !== display.focus_window) {
|
||||
let hasFocus = selected.has_focus();
|
||||
selected.foreach_transient(mw => hasFocus = mw.has_focus() || hasFocus);
|
||||
if (!hasFocus) {
|
||||
Main.activateWindow(selected);
|
||||
} else {
|
||||
// Typically on cancel - the `focus` signal won't run
|
||||
|
||||
Reference in New Issue
Block a user