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

Nagstamon moves between monitors on refresh #63

Closed
ghostsquad opened this issue Mar 19, 2014 · 18 comments
Closed

Nagstamon moves between monitors on refresh #63

ghostsquad opened this issue Mar 19, 2014 · 18 comments

Comments

@ghostsquad
Copy link

I'm working on a multi-monitor desktop, and if I leave the window open, after just a few moments, the Nagstamon window moves to where my mouse is focused.

@HenriWahl
Copy link
Owner

Which version do you use on which OS?

@cstuder
Copy link

cstuder commented Apr 3, 2014

I had the same happening to me, but am unable to reproduce it consistently.

Nagstamon 0.9.11 on Windows 7 on two monitors. Appearance in tray only.

@cstuder
Copy link

cstuder commented Apr 3, 2014

Ok, got it to reproduce:

  • Click on the the tray icon. Nagstamon opens on the first monitor.
  • Move the mouse away, without hovering over the window and click on another application.
  • Nagstamon looses focus, but keeps the window open.
  • After some time (10-20 seconds), Nagstamon moves above the mouse to the second monitor.
  • It only disappears if I hover over the window and then leave it.

This doesn't happen if the mouse cursor remains on the first monitor. But when I move it later to the second monitor, Nagstamon follows some time later.

@HenriWahl
Copy link
Owner

Thanks to you recipe I was able to reproduce this. These systray-popup-routines are some years old and apparently not multi-monitor-aware. I will look at this issue.

@HenriWahl
Copy link
Owner

Is it possible in Windows to change the placement of the taskbar between monitors? Or can it be set only onto the first one, in GTK-speak monitor 0? If it behaves like that my mouse-pointer-based-monitor detection which leads to this funny effect of the loyal popup could be omitted entirely.

@cstuder
Copy link

cstuder commented Apr 3, 2014

In Windows you can set one monitor as primary, this is where the taskbar will appear. You can set the primary monitor arbitrarily.

I have no experience with GTK, so I don't know if this changes the monitor ID.

HenriWahl pushed a commit that referenced this issue Apr 3, 2014
@HenriWahl
Copy link
Owner

This issue is fixed in latest commit. Are you able to test directly from source or do you need a binary?

@cstuder
Copy link

cstuder commented Apr 3, 2014

I need a binary.

("Your system is not supported for automated build yet", Cygwin with Python 2.7.3)

@HenriWahl
Copy link
Owner

Somehow my binaries do not run on Windows anymore. :-(
Use Linux or see http://nagstamon.ifw-dresden.de/docs/requirements/ or wait until my binaries run.

@HenriWahl
Copy link
Owner

Please try https://nagstamon.ifw-dresden.de/files-nagstamon/unstable/Nagstamon_0.9.12-devel-20140403_win32.zip. It has the fixed multi-monitor-feature and I hope it kind of runs.

@cstuder
Copy link

cstuder commented Apr 4, 2014

I think that solved it, thank you very much.

There's a small issue remaining: If I open the Nagastamon window (Staying at the right border of my primary monitor), hover over it, and then move the mouse away to the right onto the second monitor without leaving the window boundary on the top or bottom, the window doesn't close. It does close however when I move the mouse back to the first monitor, outside the window, and then enter the window area.

Looks like the autoclosing of the window is still a little bit wonky, but it behaves much better now without the jumping around.

@HenriWahl
Copy link
Owner

Is that a new feature or did it behave like this before?

@cstuder
Copy link

cstuder commented Apr 4, 2014

It's new. In version 0.9.11 the window would close when moving the mouse to the right onto the next monitor.

@HenriWahl
Copy link
Owner

I will see if I find some hint.

@HenriWahl
Copy link
Owner

I cannot find anything. The popwin closes as it is supposed to when moving the pointer to the right monitor. :-(

Edit: This happens in a VM with 2 virtual monitors.

@cstuder
Copy link

cstuder commented Apr 7, 2014

Well, it does feel much better now. Thank you for your work.

(I'm off on holidays for the next two weeks and not available for beta testing.)

@HenriWahl
Copy link
Owner

Should work now.

@ghostsquad
Copy link
Author

Thanks for the fix! Sorry I wasn't keeping track of this issues after submitting it.

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

No branches or pull requests

3 participants