Incorrect startup monitor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LinuxDC++ |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I have a dual-monitor setup with my secondary monitor on the left and primary monitor on the right.
On first startup (when LinuxDCPP.xml doesn't exist), LinuxDC++ will open at position X=100 (which is on the secondary monitor) instead of something > 1024 (primary monitor). I then have to drag it over to my primary monitor.
Also, because I immediately maximized my window (and never unmaximized it), the X position is never saved. After months of frustration I realised this only after inspecting the code myself (workaround was to unmaximize, drag over to primary and quit program so that X saved as > 1024).
I see the latest GTK has a gdk_screen_
PS: To add to my frustration, my secondary monitor is actually my TV, which isn't always on. I had to switch on the TV so that I could drag the LinuxDC++ window over.
Also, I don't agree with this comment in mainwindow.cc:
// The get pos/size functions return junk when window is maximized
I think main-window-pos-x and -y should always be saved, not only when the window is UNmaximized.
That will solve this problem partially. Only the very first time the window will be on the wrong monitor.