aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Compositor.hpp
diff options
context:
space:
mode:
authormemchr <[email protected]>2023-08-21 18:54:02 +0000
committerGitHub <[email protected]>2023-08-21 20:54:02 +0200
commitcb59763d32b5ac9824ed921d225c376cd1f98df6 (patch)
treea3082b700b3bd8ffab208fc453b206a57d89f06d /src/Compositor.hpp
parent9977a8bfd4f5fcf932880b72f1271546c401f783 (diff)
downloadHyprland-cb59763d32b5ac9824ed921d225c376cd1f98df6.tar.gz
Hyprland-cb59763d32b5ac9824ed921d225c376cd1f98df6.zip
fix: improved focus behaviour on workspace switching for follow_mouse!=1 (#3041)
* fix: improved focus behaviour on workspace switching for follow_mouse!=1 When the 'input:follow_mouse' is not set to 1 and the target workspace for switching does not currently have the previously focused window, Hyprland will prioritize focusing on the top-left-most window. * fix: #2451 call simulateMouseMovement. * unify logic * multimon fix --------- Co-authored-by: vaxerski <[email protected]>
Diffstat (limited to 'src/Compositor.hpp')
-rw-r--r--src/Compositor.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compositor.hpp b/src/Compositor.hpp
index 6101aa5e..09f3d193 100644
--- a/src/Compositor.hpp
+++ b/src/Compositor.hpp
@@ -158,6 +158,7 @@ class CCompositor {
CWindow* getUrgentWindow();
bool hasUrgentWindowOnWorkspace(const int&);
CWindow* getFirstWindowOnWorkspace(const int&);
+ CWindow* getTopLeftWindowOnWorkspace(const int&);
CWindow* getFullscreenWindowOnWorkspace(const int&);
bool doesSeatAcceptInput(wlr_surface*);
bool isWindowActive(CWindow*);