mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 16:46:00 +01:00
reset m_bEmptyFocusCursorSet on workspace switch
This commit is contained in:
parent
141456dd89
commit
0e6e8461eb
3 changed files with 7 additions and 1 deletions
|
@ -707,6 +707,8 @@ void CKeybindManager::changeworkspace(std::string args) {
|
||||||
// remove constraints
|
// remove constraints
|
||||||
g_pInputManager->unconstrainMouse();
|
g_pInputManager->unconstrainMouse();
|
||||||
|
|
||||||
|
g_pInputManager->m_bEmptyFocusCursorSet = false;
|
||||||
|
|
||||||
// if it's not internal, we will unfocus to prevent stuck focus
|
// if it's not internal, we will unfocus to prevent stuck focus
|
||||||
if (!internal)
|
if (!internal)
|
||||||
g_pCompositor->focusWindow(nullptr);
|
g_pCompositor->focusWindow(nullptr);
|
||||||
|
|
|
@ -25,6 +25,8 @@ struct STouchData {
|
||||||
Vector2D touchSurfaceOrigin;
|
Vector2D touchSurfaceOrigin;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class CKeybindManager;
|
||||||
|
|
||||||
class CInputManager {
|
class CInputManager {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -161,6 +163,8 @@ private:
|
||||||
|
|
||||||
// swipe
|
// swipe
|
||||||
void beginWorkspaceSwipe();
|
void beginWorkspaceSwipe();
|
||||||
|
|
||||||
|
friend class CKeybindManager;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline std::unique_ptr<CInputManager> g_pInputManager;
|
inline std::unique_ptr<CInputManager> g_pInputManager;
|
||||||
|
|
Loading…
Reference in a new issue