khimaros / smart-auto-move

Smart Auto Move learns the size and position of your application windows and restores them to the correct place on subsequent launches. Supports Wayland.
https://extensions.gnome.org/extension/4736/smart-auto-move/
GNU General Public License v3.0
79 stars 4 forks source link

bad extension state makes windows immovable (jumping back to previously saved position) #31

Open peter-kehl opened 2 years ago

peter-kehl commented 2 years ago

Thank you for Smart Auto Move. I used to love it.

However, on a multi-screen in GNOME 42.2 (current Manjaro Linux), it started to move a window (of GNOME "Terminal" application) to one screen. If I press Alt+Space > "Move to Monitor Left", it's ignored. If I grab the (terminal's) menu bar and move it to another screen, right after I release the mouse button it moves back.

I have many "Saved Windows" and nothing in "Overrides": image

zanovis commented 1 year ago

Are you using Static Workspaces? Settings > Multitasking > Workspaces > Static Workspaces

Reference: #22

khimaros commented 1 year ago

there may have been some backward compatibility issues with the config format between releases.

i'm sad to hear this bit you and i'll be more mindful of this with future releases.

@peter-kehl would you mind providing a dump of your current configuration? note, there may be some private information in window titles, so you may want to review before posting here. you can also email to me privately me@khimaros.com

you can grab a dconf dump with:

$ dconf dump /org/gnome/shell/extensions/smart-auto-move/

after you've done that, you can try to reset your configuration and see if it fixes your problem. after this you will need to manually reposition all of the windows and update your overrides (hopefully) one last time:

$ dconf reset -f /org/gnome/shell/extensions/smart-auto-move/

if you are able to reproduce after that, please let me know.

peter-kehl commented 1 year ago

Thank you. I don't use dynamic workspaces: image

image

peter-kehl commented 1 year ago

Now I'm on GNOME 43. If all is fine for a few days, I'll close this. Thank you Khimaros.

khimaros commented 1 year ago

@peter-kehl i am curious to hear if the upgrade helped you. however, i do think this is a real bug which shows up in some circumstances and needs to be fixed.

in the meantime, there is a potential workaround, which is to run the following:

dconf reset /org/gnome/shell/extensions/smart-auto-move/saved-windows

it may be necessary to disable the extension, run the command, and then reenable but i have not yet confirmed this.