kishorviswanathan / window-state-manager

GNOME-shell extension to automatically save/restore window state
GNU General Public License v2.0
23 stars 5 forks source link

Restoring window positions from Suspend/Stand By #13

Open jim-taylor-business opened 6 days ago

jim-taylor-business commented 6 days ago

would that be possible or is that out of scope?

the device would have power so should be able to remember where windows should be

kishorviswanathan commented 6 days ago

Yes, it should remain in memory. Is it not working like that?

jim-taylor-business commented 4 days ago

in my experience the window positions get jumbled up when i resume from suspend

i'm using the latest Nobara 40

Hardware Information:

Software Information:

kishorviswanathan commented 4 days ago

Can you mention the exact steps you follow or a way for me to reproduce this issue ? Do you suspend when the monitor is connected and do you keep it connected? I am interested in knowing when the monitor layout changes, is it before suspend or after suspend ?

jim-taylor-business commented 2 days ago

the monitor is always connected select Suspend from the menu and wait for computer to enter state wake computer from sleep screen is locked so login to session discover windows have rearranged

kishorviswanathan commented 1 day ago

I am unable to reproduce this behavior on my system.

The extension will try to rearrange the windows when a change in monitor layout is detected. This can happen when the monitor is disconnected. When the system is suspended, there is no change in layout. There won't be any change when the device wakes up either. So the extension is not restoring the layout. I don't understand how the windows are getting rearranged when you suspend. It should stay at the original location as long as the monitors are not disconnected.

One possibility could be that the monitor is getting disconnected after the extension is suspended and reconnected before the extension is activated again. In that case, extension will never know about the event.

If possible share the logs from gnome-shell.

journalctl --boot | grep " gnome-shell"