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

pointer constraints not working properly with multiple monitors #4464

Closed
feschber opened this issue Jan 17, 2024 · 1 comment
Closed

pointer constraints not working properly with multiple monitors #4464

feschber opened this issue Jan 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@feschber
Copy link

Hyprland Version

System/Version info
Hyprland, built from branch HEAD at commit 03ebbe18ed8517ee22591eac82cd54322f42cb7d  (props: bump ver to 0.34.0).
Date: Mon Jan 1 12:03:15 2024
Tag: v0.34.0

flags: (if any)

Bug or Regression?

Bug

Description

With an active zwp_pointer_constraints_v1::lock_pointer instance, the mouse cursor is released from surfaces when the mouse enters another output.

How to reproduce

Instantiate a layershell surface and add a pointer constraint object to it pointer_constraints.lock_pointer(surface, pointer, None, Lifetime::Persistent). Move the mouse into the layer surface -> its locked.

Moving the (now invisible mouse) to a different monitor releases the mouse from the layer surface.
This behaviour is different than at least

  • wayfire
  • sway
  • KDE
    On the above compositors the mouse stays locked.

The code in question can be found here.

To reproduce, Lan Mouse can be used (will require two pcs).

I can try to make a more minimal reproducable example.

Crash reports, logs, images, videos

No response

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

No branches or pull requests

1 participant