Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux window position saving #48

Open
oakmac opened this issue Jan 14, 2015 · 8 comments
Open

Linux window position saving #48

oakmac opened this issue Jan 14, 2015 · 8 comments

Comments

@oakmac
Copy link
Owner

oakmac commented Jan 14, 2015

I'm noticing a bug on Linux (Xubuntu 14.04) where the window position adjusts between application closing / opening.

Here is window.json opening and closing 4 times:

{"maximized":false,"position":[258,136],"size":[1000,850]}
{"maximized":false,"position":[259,160],"size":[1000,850]}
{"maximized":false,"position":[260,184],"size":[1000,850]}
{"maximized":false,"position":[261,208],"size":[1000,850]}

Every time the window is closed it adjusts x by x + 1 and y by y + 24.

Not seeing this behavior on Windows. Wonder if this is an xfce thing, an atom-shell thing, all Linux? Who knows.

Might also have to do with the way we're closing the window right now using destroy() instead of following normal window close lifecycle.

@oakmac
Copy link
Owner Author

oakmac commented Jan 17, 2015

Would be great if someone could reproduce this on Linux using a different window manager.

@comamitc
Copy link
Collaborator

Happening on ubuntu too. Eventually stops moving on y coordinates.

@oakmac
Copy link
Owner Author

oakmac commented Jan 19, 2015

Is it adjusting in the same way? ie: x+1, y+24?
Which version of Ubuntu? Window manager? etc
You can check this in the window.json file located in ~/.config/Cuttle/window.json
It should be updated everytime the application is closed.

@comamitc
Copy link
Collaborator

no x movement and different y movement on ubuntu 14.04; window manager is Unity.

comamitc@ubuntu:~/.config/Cuttle$ cat window.json 
{"maximized":false,"position":[253,80],"size":[1000,850]}
comamitc@ubuntu:~/.config/Cuttle$ cat window.json 
{"maximized":false,"position":[253,108],"size":[1000,850]}

@oakmac
Copy link
Owner Author

oakmac commented Jan 19, 2015

Can we see a few more iterations of that just to confirm a pattern?

@comamitc
Copy link
Collaborator

comamitc@ubuntu:~/.config/Cuttle$ cat window.json 
{"maximized":false,"position":[253,80],"size":[1000,850]}
comamitc@ubuntu:~/.config/Cuttle$ cat window.json 
{"maximized":false,"position":[253,108],"size":[1000,850]}
comamitc@ubuntu:~/.config/Cuttle$ cat window.json 
{"maximized":false,"position":[253,128],"size":[1000,850]}
comamitc@ubuntu:~/.config/Cuttle$ cat window.json 
{"maximized":false,"position":[253,128],"size":[1000,850]}

Appears to move to the bounds on the UI and then stops.

@comamitc
Copy link
Collaborator

I believe this might be worthy of an Atom-Shell bug. If they feel the need to escalate to the various UNIX window managers due to inconsistency, I believe the maintainers should be responsible for that.

@oakmac
Copy link
Owner Author

oakmac commented Jan 19, 2015

Yeah - this feels like an atom-shell (or deeper, chromium?) bug to me. I will open an issue there and see what they say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants