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

Portal for getting screen coordinates based on a selection #588

Closed
SeaDve opened this issue Jun 6, 2021 · 5 comments
Closed

Portal for getting screen coordinates based on a selection #588

SeaDve opened this issue Jun 6, 2021 · 5 comments

Comments

@SeaDve
Copy link

SeaDve commented Jun 6, 2021

Similar to gnome shell screenshot's SelectArea method

@SeaDve SeaDve changed the title Portal for getting screen coordinates Portal for getting screen coordinates for a window Jun 6, 2021
@SeaDve SeaDve changed the title Portal for getting screen coordinates for a window Portal for getting screen coordinates Jun 6, 2021
@SeaDve SeaDve changed the title Portal for getting screen coordinates Portal for getting screen coordinates based on a selection Jun 6, 2021
@matthiasclasen
Copy link
Contributor

What would you do with such coordinates?

@SeaDve
Copy link
Author

SeaDve commented Jun 19, 2021

for screen recording etc.

it is related to #582, but allowing individual screen selection gives more granular control

@warningnonpotablewater
Copy link

warningnonpotablewater commented Jun 19, 2021

So what you're proposing is delivering compositor-local coordinates to the client after the user selected an arbitrary area of the screen? I fail to find a use case for such a feature, especially considering compositor-local coordinates of something would be completely useless on Wayland unless the compositor supports a protocol that allows something useful to be done with the coordinates (such as wlr-foreign-toplevel-management or wlr-virtual-pointer), in which case you could just use a tool specific for such compositor (such as slurp). I don't think such a specific feature belongs in a portal.

@SeaDve
Copy link
Author

SeaDve commented Jun 19, 2021

thanks for explaining, i understood, i think i should close it

@SeaDve SeaDve closed this as completed Jun 19, 2021
@SeaDve
Copy link
Author

SeaDve commented Jun 22, 2021

btw @kirbykevinson doesn't slurp is on xwayland?

Edit: nvm

Edit 2: It seems to only work on sway, maybe it would be better if it works on most if not all

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

3 participants