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

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

Open
judovana opened this issue Nov 9, 2016 · 5 comments

Comments

@judovana
Copy link

judovana commented Nov 9, 2016

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
Copy link
Owner

n457 commented Nov 14, 2016

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
Copy link
Author

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 [email protected]
Komu: n457/Uncolored [email protected]
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
(#21 (comment)), or
mute the thread
(https://github.com/notifications/unsubscribe-auth/ACxRS15qOc4hjJeUkTvdpqeFl18w_Bbpks5q-IcogaJpZM4KtYpz)
.

"=

@n457
Copy link
Owner

n457 commented Nov 14, 2016

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
Copy link
Author

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
[email protected]

---------- Původní zpráva ----------
Od: n457 [email protected]
Komu: n457/Uncolored [email protected]
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
(#21 (comment)), or
mute the thread
(https://github.com/notifications/unsubscribe-auth/ACxRS6bma4-zo4ZyXuNcvo2wlnN9tdI-ks5q-J4OgaJpZM4KtYpz)
.

"=

@n457
Copy link
Owner

n457 commented Aug 19, 2017

Decision after more tests & researches

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