n457 / Uncolored

(Un)colored — Next generation desktop rich content editor that saves documents with themes. HTML & Markdown compatible. For Windows, OS X & Linux. — http://n457.github.io/Uncolored/
Apache License 2.0
776 stars 51 forks source link

after start, window is centered into middle of all virtual monitrs, even to not-existing areas #21

Open judovana opened 7 years ago

judovana commented 7 years ago

Hello, I have monitors in setup as following: uncolored Unluckily uncolored centres to middle of all screens(see the black box on image above), and so, into area where even mouse can not reach...

A bit better habit is to centre to middle of "current" monitor. Where current is the one with mouse, or simply the default one. Only last fall back should be centre of all.

n457 commented 7 years ago

Hello @judovana,

It seems like it's a pretty common issue with Linux distributions. And more generally, it's the OS who decides, by default, the position of an application window at start.

I've done some research : http://stackoverflow.com/questions/12477435/window-appears-off-screen-on-ubuntu http://blog.vogella.com/2013/06/02/ubuntu-how-to-move-an-application-which-is-displayed-offscreen/

Can you do some research as well to confirm or refute that please ?

Thanks for your feedback ;)

judovana commented 7 years ago

I can not agree that is common issue.  This is only app in last 6 years which have this behaviour. I guess it is  common problem of certain framework(s) and/or certain approaches. I was not digging into your code, but usually  you can control position of newly created window in all frameworks I had ever encountered.

Just dont close not-a-bug:)

Thanx anyway!  Best regards from CZ     J.

---------- Původní zpráva ---------- Od: n457 notifications@github.com Komu: n457/Uncolored Uncolored@noreply.github.com Datum: 14. 11. 2016 17:07:09 Předmět: Re: [n457/Uncolored] after start, window is centered into middle of all virtual monitrs, even to not-existing areas (#21)

"

Hello @judovana(https://github.com/judovana),

It seems like it's a pretty common issue with Linux distributions. And more generally, it's the OS who decides, by default, the position of an application window at start.

I've done some research : http://stackoverflow.com/questions/12477435/window-appears-off-screen-on- ubuntu (http://stackoverflow.com/questions/12477435/window-appears-off-screen-on-ubuntu) http://blog.vogella.com/2013/06/02/ubuntu-how-to-move-an-application-which- is-displayed-offscreen/ (http://blog.vogella.com/2013/06/02/ubuntu-how-to-move-an-application-which-is-displayed-offscreen/)

Can you do some research as well to confirm or refute that please ?

Thanks for your feedback ;)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/n457/Uncolored/issues/21#issuecomment-260378053), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACxRS15qOc4hjJeUkTvdpqeFl18w_Bbpks5q-IcogaJpZM4KtYpz) .

"=

n457 commented 7 years ago

Of course there's a way to position the window with code :) , but in (Un)colored code, I just open a window, there's nothing specific about screens or position.

Moreover, it would be "dangerous" to force the window position at startup. Imagine that the user has a specific external application or setting to handle that ? I don't want to risk a conflict with that.

It may be a bug with the OS or the Electron framework, but it's not a bug with the code I wrote, and I don't want to force the window position for the reasons above ¯(ツ)

judovana commented 7 years ago

Yup. I was expecting excuse of "bug in framework, but it's not a bug with the code I wrote, an" it is just expectable. And thats why I wrote "please dont close not-a-bug" (or wont-fix ;) ) The reason you specified is hoewer justified. What about compromise? You can add command line switch, which will center to current (where mouse is[not exactly comfortable]) or default (not exactly portable) It will make you  safe from user's settings, and will make users happy.

Mgr. Jiri Vanek judovana@email.cz

---------- Původní zpráva ---------- Od: n457 notifications@github.com Komu: n457/Uncolored Uncolored@noreply.github.com Datum: 14. 11. 2016 18:45:07 Předmět: Re: [n457/Uncolored] after start, window is centered into middle of all virtual monitrs, even to not-existing areas (#21)

"

Of course there's a way to position the window with code :) , but in (Un) colored code, I just open a window, there's nothing specific about screens or position.

Moreover, it would be "dangerous" to force the window position at startup. Imagine that the user has a specific external application or setting to handle that ? I don't want to risk a conflict with that.

It may be a bug with the OS or the Electron framework, but it's not a bug with the code I wrote, and I don't want to force the window position for the reasons above ¯(ツ)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/n457/Uncolored/issues/21#issuecomment-260406361), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACxRS6bma4-zo4ZyXuNcvo2wlnN9tdI-ks5q-J4OgaJpZM4KtYpz) .

"=

n457 commented 7 years ago

Decision after more tests & researches