shell icon indicating copy to clipboard operation
shell copied to clipboard

Save window geometry

Open plfiorini opened this issue 9 years ago • 4 comments

Wayland windows are placed randomly, what if we saved window geometry per appId when the app is closed?

This is just an idea, I don't know if we can have a unique window id to make the algorithm find the windows when the placement is restored.

plfiorini avatar Aug 21 '16 18:08 plfiorini

Saving window geometry sounds nice. Right now dialogs seem to be started half off-screen most of the time. Maybe we could at least improve that so they're placed on-screen if possible?

iBelieve avatar Aug 22 '16 13:08 iBelieve

Transient windows should already be centered to their parent but it doesn't work because the size is not known at that time. Probably I can make that work by waiting for the surface commit before setting the position.

plfiorini avatar Aug 22 '16 13:08 plfiorini

Ah, so the top left corner is centered instead of the full dialog because size starts at zero. That makes sense. What about locking dialogs so they're always centered like GNOME does? Then you could just update the dialog position when the size updates.

iBelieve avatar Aug 22 '16 13:08 iBelieve

Yes, And moving the dialog will move the parent too.

plfiorini avatar Aug 22 '16 14:08 plfiorini