summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-11-15 10:39:05 +0000
committervaxerski <vaxry@vaxry.net>2022-11-15 10:39:05 +0000
commitd5eafe192649b290fd587b41f772887058f7418b (patch)
tree3883098e3303cc3094ea7b66834d45a9c1dcaa2e /src/layout/IHyprLayout.cpp
parente2da4ff257646ba892ba1c0b01f3f28999e22430 (diff)
set cursor to hand1 when moving a window
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
-rw-r--r--src/layout/IHyprLayout.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp
index 8964e235..dfccacda 100644
--- a/src/layout/IHyprLayout.cpp
+++ b/src/layout/IHyprLayout.cpp
@@ -134,6 +134,8 @@ void IHyprLayout::onBeginDragWindow() {
return;
}
+ g_pInputManager->setCursorImageUntilUnset("hand1");
+
DRAGGINGWINDOW->m_vRealPosition.setConfig(g_pConfigManager->getAnimationPropertyConfig("windowsMove"));
DRAGGINGWINDOW->m_vRealSize.setConfig(g_pConfigManager->getAnimationPropertyConfig("windowsMove"));
@@ -181,6 +183,8 @@ void IHyprLayout::onEndDragWindow() {
if (!g_pCompositor->windowValidMapped(DRAGGINGWINDOW))
return;
+ g_pInputManager->unsetCursorImage();
+
if (DRAGGINGWINDOW->m_bDraggingTiled) {
DRAGGINGWINDOW->m_bIsFloating = false;
g_pInputManager->refocus();