Window positions under wayland

2022-08-04 Thread samuel ammonius
I hope this hasn't been said a million times before, because I don't mean to pressure anyone. I'm not a wayland contributor. I just wanted to say that Wayland should really consider letting windows get/set their positions. The main reasons are that apps such as popups and dialogs are usually suppo

Re: Window positions under wayland

2022-08-04 Thread samuel ammonius
gt; > On Thursday, August 4th, 2022 at 19:00, samuel ammonius < > sfammon...@gmail.com> wrote: > > > > > apps such as popups and dialogs are usually supposed to start either > > > at the center of the screen or the center of their parent app > > You are barking

Re: Window positions under wayland

2022-08-04 Thread samuel ammonius
, Aug 4, 2022 at 12:37 PM samuel ammonius > wrote: > > > > Compositors can prevent apps from doing this if they want to, but there > needs to be some built-in way for windows to set their positions. Not > having this isn't a feature. > > I am not a Wayland develo

Re: Window positions under wayland

2022-08-05 Thread samuel ammonius
I've got an idea: why not just add an API for getting/setting windows location and let the compositor handle it? It may choose to ignore it, follow it, follow it on the right monitor, or any number of things. It can also let the user decide through the preferences. I think it would be a better solu

Re: Window positions under wayland

2022-08-05 Thread samuel ammonius
Please don't close this discussion on account of something someone else said. Wouldn't it be better for users, compositors, and apps if there was a way to manage window positions, but the compositor could choose not to let them? The best apps typically have an option in the preferences for windows

Re: Window positions under wayland

2022-08-05 Thread samuel ammonius
I don't understand what all the talk is about when discussing whether it should be up to the compositor or app to set a window's position. On Fri, Aug 5, 2022 at 2:30 PM Daniel Stone wrote: > On Fri, 5 Aug 2022 at 17:21, Igor Korot wrote: > > On Thu, Aug 4, 2022 at 9:20 PM Thiago Macieira wrot

Re: Window positions under wayland

2022-08-05 Thread samuel ammonius
(I accidentally sent that without finishing it. Just ignore it) On Fri, Aug 5, 2022 at 5:54 PM Igor Korot wrote: > Hi, Samuel, > > On Fri, Aug 5, 2022 at 3:21 PM samuel ammonius > wrote: > > > > I don't understand what all the talk is about when discussing wheth

Re: Window positions under wayland

2022-08-05 Thread samuel ammonius
I don't understand why we're all asking if it should be up to the compositor or app to set a window's position. The only correct answer is that it should be up to the user, so I don't see what's wrong with my suggestion of a "set window size request" function. Waylands idea of not letting apps set

Re: Window positions under wayland

2022-08-05 Thread samuel ammonius
Sorry, I just read over my last email and realized that I didn't even state what I was trying to say. I meant my last suggestion of letting the compositor handle the resize event. I was just giving some reasons as to why it may be the best solution. On Fri, Aug 5, 2022 at 6:32 PM samuel amm

Re: Window positions under wayland

2022-08-06 Thread samuel ammonius
ing this, however. > If I added this feature through git, would it be accepted? It would just be "void wl_surface_request_position(wl_surface *surface, unsigned int x, unsigned int y);" On Fri, Aug 5, 2022 at 8:14 PM samuel ammonius wrote: > Sorry, I just read over my last email an

Position set/get prototype template

2022-08-08 Thread samuel ammonius
rotocols and used them to create a simple one for position set/get. ------ Copyright © 2022 Samuel AmmoniusPermission is hereby granted, free of charge, to any person obtaining acopy of this sof

Re: Position set/get prototype template

2022-08-08 Thread samuel ammonius
Hi, On Mon, Aug 8, 2022 at 12:06 PM Simon Ser wrote: > If you are not interested in explaining the use-cases, and are just > interested in blindly adding new features: sorry, but this isn't how we > want to approach things. Sorry for not giving a more specific answer to this earlier. The main

Re: Position set/get prototype template

2022-08-08 Thread samuel ammonius
Hi Daniel, I've just looked at the xdg-shell protocol as you said. I was really surprised at the amount of features it had, but one part in particular caught my eye: The window geometry of a surface is its "visible bounds" from theuser's perspective. Client-side decorations of

Re: Position set/get prototype template

2022-08-08 Thread samuel ammonius
(I forgot to mention in the above message that I was looking at the unstable version) On Mon, Aug 8, 2022 at 1:54 PM samuel ammonius wrote: > Hi Daniel, > > I've just looked at the xdg-shell protocol as you said. I was really > surprised at the > amount of features it

Re: Position set/get prototype template

2022-08-08 Thread samuel ammonius
Hi Igor, I don't understand why you would want to be able to control where a dialog goes. I'd normally agree that applications should be given the option to do whatever they want, but a dialog is literally the worst example possible second only to splash screens. Wayland allows the user to control