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

resize_on_border does not care about mouse constraints #4348

Closed
zakk4223 opened this issue Jan 4, 2024 · 1 comment · Fixed by #4889
Closed

resize_on_border does not care about mouse constraints #4348

zakk4223 opened this issue Jan 4, 2024 · 1 comment · Fixed by #4889
Labels
bug Something isn't working

Comments

@zakk4223
Copy link
Contributor

zakk4223 commented Jan 4, 2024

Hyprland Version

System/Version info
Hyprland, built from branch main at commit 46997a764304366d772456c20b1c719960927aa7 dirty (renderer: fix auto scale detection with fractional).
Date: Sun Dec 31 07:54:24 2023
Tag: v0.33.1-119-g46997a76

Bug or Regression?

Bug

Description

Multi-monitor setup: a app/game constraining the mouse on the main monitor (fullscreen), resize_on_border=true in the config.

Sometimes when you click the mouse the game will lose focus. I traced through the source and figured out it is coming from processMouseDownNomal calling resizeWithBorder().

There's a bunch of extra logging in the log file, sorry. Was trying to figure out wtf the focus grab was coming from. Just search for "RESIZE WITH BORDER", that's emited from within processMouseDownNormal

How to reproduce

resize_on_border+Multi monitor -> run game on main that constrains mouse. Have a window open on the second monitor. "move" the mouse until it would "normally" be on the edge of the second display, and then click+drag. After a few tries you'll eventually trigger a border resize.

Crash reports, logs, images, videos

hyprlandd-constrain.log

@zakk4223 zakk4223 added the bug Something isn't working label Jan 4, 2024
@vaxerski
Copy link
Member

please check #4889

@vaxerski vaxerski linked a pull request Feb 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants