Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

myamusashi
Copy link

@myamusashi myamusashi commented Oct 17, 2024

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

@@ -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");
Copy link
Member

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) {
Copy link
Member

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants