Skip to content

Add surface intersection observer protocol. #3

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

outfoxxed
Copy link
Member

This protocol is intended to allow clients such as bars and docks to dodge windows that would otherwise be placed over/under them. This is often desired for large widgets and tall bars.

@outfoxxed outfoxxed mentioned this pull request May 23, 2025
Copy link

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

what's the use of this over #7?

@outfoxxed
Copy link
Member Author

outfoxxed commented May 23, 2025

#7 doesn't have a way to determine the position of a layer surface or the windows relative to it, but that could be included somehow. This one has a much more targeted use case but we could accomplish it both ways.

Also 7 is more likely to be accepted in w-p imo.

@vaxerski
Copy link

I see very little chance of this being in w-p and neither do you probably want to discuss for years with folks there regarding all the ""issues"" this has.

#7 doesn't have a way to determine the position of a layer surface or the windows relative to it, but that could be included somehow. This one has a much more targeted use case but we could accomplish it both ways.

Why? With a layer, you know where it is. By protocol. You ask to put it somewhere.

@outfoxxed
Copy link
Member Author

outfoxxed commented May 23, 2025

I see very little chance of this being in w-p

I dont see it happening before ext layer is in at least.

Why? With a layer, you know where it is. By protocol. You ask to put it somewhere.

That doesn't work once you have more than one layer on an edge, but its definitely fine in the general case.

@vnuxa
Copy link

vnuxa commented May 25, 2025

That doesn't work once you have more than one layer on an edge, but its definitely fine in the general case.

id say most compositors should have some form of tracking layer positioning and size via ipc
and once a compositor agnostic solution is made in wayland protcols then clients could use that instead

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

Successfully merging this pull request may close these issues.

3 participants