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

set_margin() of layer surface doesn't affects the pointer #460

Open
JarKz opened this issue Jun 30, 2024 · 2 comments
Open

set_margin() of layer surface doesn't affects the pointer #460

JarKz opened this issue Jun 30, 2024 · 2 comments

Comments

@JarKz
Copy link

JarKz commented Jun 30, 2024

Description

My task is using this library for rendering stack of notifications. Firstly I tried the example about layer surface and I liked it. So I add some code for creating more than one layer surfaces. For stacking I use the LayerSurface::set_margin to avoid collision. But I ended up with one annoying problem - the set_margin doesn't affect the pointer. When I move the layer by the set_margin method and don't move the pointer, the clicks will be delivered to the moved layer which is nonsense.

What do I do?

@wash2
Copy link
Member

wash2 commented Jul 3, 2024

Assuming the margin is visibly applied, and you've set a margin on anchored edges, I think this is most likely a compositor issue. Have you tested your application in sway or another compositor that supports layer shell?

@JarKz
Copy link
Author

JarKz commented Jul 5, 2024

Thank you for the answer, I appreciate it!
Yeah, the changes are visible and the layouts are anchored.

I tried it only on the Hyprland compositor and haven't tried on any other.

At sunday I'll check this behavior on the sway and I'll give the feedback.

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

No branches or pull requests

2 participants