-
-
Notifications
You must be signed in to change notification settings - Fork 979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: drag the window when the cursor starts moving #8143
base: main
Are you sure you want to change the base?
Conversation
@@ -248,14 +248,19 @@ void IHyprLayout::onBeginDragWindow() { | |||
|
|||
m_vDraggingWindowOriginalFloatSize = DRAGGINGWINDOW->m_vLastFloatingSize; | |||
|
|||
static auto drag_window_when_cursor_move = CConfigValue<Hyprlang::INT>("misc:drag_window_when_cursor_move"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no snake and config vars are caps
PDRAGWHENCURSORMOVE
if (!DRAGGINGWINDOW->m_bIsFloating) { | ||
if (g_pInputManager->dragMode == MBIND_MOVE) { | ||
if (*drag_window_when_cursor_move) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this work??? seems dodgy at best
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it is
Describe your PR, what does it fix/add?
When cursor is clicked on a window but the cursor is not moving, the window will not float until cursor starts moving
#8099
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Nah.
Is it ready for merging, or does it need work?
Not ready