vixalien / sticky

A simple sticky notes app for GNOME
https://flathub.org/apps/details/com.vixalien.sticky
MIT License
183 stars 28 forks source link

Remember size and position of each note on screen #12

Closed seanh closed 1 year ago

seanh commented 1 year ago

... after quitting and restarting the app.

Thanks!

Lovely little app by the way

vixalien commented 1 year ago

the size of the note is rememberer, but not the position.

this is because on Wayland, windows cannot "see" outside their own window. this means that windows cannot calculate their position in relation to the monitor/screen because of security reasons.

it's definitely possible for X11, but I'm not sure to implement X11-specific features

On Fri, 3 Mar 2023, 23:59 Sean Hammond, @.***> wrote:

... after quitting and restarting the app.

Thanks!

Lovely little app by the way

— Reply to this email directly, view it on GitHub https://github.com/vixalien/sticky/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB5FCP3AJWWCX4KOIWA22TW2JSTNANCNFSM6AAAAAAVPDILGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

fabd commented 1 year ago

That's a bummer.

The next option could be to remember and restore the position of the main window itself. Then, when the logic decides to show a sticky upon start (it does that for me when I close the main window, and have one sticky open, and then close the app and restart it) - then in that case you could place the sticky to where the main window was?

This would allow to at least have the last visible sticky when the app was closed to be restored to its original position - so long as the user found out that he/she can use the main window as a guide.

vixalien commented 1 year ago

that's not possible either. as I said, wayland app windows are extremely sandboxed and as such can not know where they are placed in relation to the screen (i.e they can't know where they are placed on the screen, as they cannot "see" outside their won windows).

it's hard, but can be implemented: