set cursor to hand1 when moving a window
This commit is contained in:
parent
e2da4ff257
commit
d5eafe1926
3 changed files with 28 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue