Maximized window doesn't fully cover secondary screen

Help improve MediaMonkey 5 by testing the latest pre-release builds, and reporting bugs and feature requests.

Moderator: Gurus

Boramis
Posts: 22
Joined: Wed Jul 14, 2010 11:24 am

Maximized window doesn't fully cover secondary screen

Post by Boramis »

This might be related to "MediaMonkey leaves trace on other monitor when maximized (multi-monitor)"
https://www.ventismedia.com/mantis/view.php?id=16804
https://www.mediamonkey.com/forum/viewt ... p?p=476073

The behavior is different though, so I figured it warranted a separate bug report/thread.

Image

When I maximize MediaMonkey, it doesn't fully cover the monitor, so the desktop/windows behind it show through on all four edges. It looks like it's 2 pixels on each side.

- MediaMonkey 5.0.3.2609
- Windows 10 Pro, 10.0.19043 Build 19043
- GeForce GTX 980 Ti with up to date drivers
- 2 monitors: Primary is a 3840x2160 at 200% scaling, and the secondary is 1920x1080 at 100% scaling. The secondary monitor is to the right, and they're aligned at the top.

It occurs even if the MM window is fully on a single monitor before maximizing it, and occurs on both monitors. It seems to be 2 pixels on either monitor, so whatever it is isn't scaled to the DPI.

I just installed Discord for testing and it does not have the same behavior. When it's maximized I see the bleed onto the other monitor that's mentioned in the other report.

I'm not sure if it's related, but I've also noticed that double clicking on the titlebar to maximize/restore the window is very inconsistently detected. In testing, sometimes it worked fine, sometimes I could double click repeatedly and it wouldn't detect at all. Moving the mouse within the titlebar area and then double clicking again would sometimes work and sometimes not.
Lowlander
Posts: 58843
Joined: Sat Sep 06, 2003 5:53 pm

Re: Maximized window doesn't fully cover secondary screen

Post by Lowlander »

I'm unable to reproduce either issue.
Barry4679
Posts: 2446
Joined: Fri Sep 11, 2009 8:07 am
Location: Australia
Contact:

Re: Maximized window doesn't fully cover secondary screen

Post by Barry4679 »

I couldn't replicate either issue either.
I do have multiple panels, but they are the same size and resolution, so that maybe that effects things.

I noticed that you have the Windows Toolbar set to auto-hide, so I tried with that setting.

MM5 crashed. So something is wrong there.
Do you the see the issue with Task Bar auto-hide set off?
Want a dark skin for MM5? This is the one that works best for me .. elegant, compact & clear.
Boramis
Posts: 22
Joined: Wed Jul 14, 2010 11:24 am

Re: Maximized window doesn't fully cover secondary screen

Post by Boramis »

It's definitely it's related to having different scaling factors on each monitor. I switched my 4K one to do 1080p at 100%, which matches the secondary monitor, and the issues don't occur. @Lowlander, if you're testing make sure you have the scaling factor different between them ("System Settings > Display > Change the size of text, apps, and other items"). That's not the same as just having different resolutions.

The titlebar clicking/dragging issue looks like it might be (at least partially) related to switching which monitor it's on, and I think it might be an invisible control blocking the mouse interactions. After dragging it from my 100% monitor to my 200% one it got into that state where none of the space to the right of the menu items was functional. If I then resized the window wider than the 100% monitor would have allowed, some of the titlebar reacted and some of it didn't:

Image
Image

I can get it into that state pretty reliably, and if it restores to the secondary monitor on startup, that can trigger it even if I haven't manually moved it between monitors. The dead area isn't consistently to the right of the functional area; sometimes they're swapped.

Also, if I drag from my 200% monitor to the 100% one, clicking on the menu items opens the submenus offset from the where they should be:

Image

Maximizing/restoring the window when it's in that state kicks things and it generally starts behaving correctly.

Two other related issues I noticed when dragging between monitors forces a rescaling: (1) The window doesn't resize even though the controls themselves do, so it's too big/small relative to what it was on the other monitor. Windows normally does that automatically. (2) the minimum constraints aren't scaled either, so you can get into a state where the window is taking up most of the screen but can't be made smaller because the constraints are correct for the 4K monitor rather than the one it's currently on.

@Barry4679: Are you referring to the fact that the taskbar icons are collapsing in groups ("Combing taskbar buttons: Always, hide labels")? The taskbar itself is always present; I don't have it set to hide. I do have "Show taskbar on all displays" turned on. Disabling that didn't change anything.
Barry4679
Posts: 2446
Joined: Fri Sep 11, 2009 8:07 am
Location: Australia
Contact:

Re: Maximized window doesn't fully cover secondary screen

Post by Barry4679 »

@Barry4679: Are you referring to the fact that the taskbar icons are collapsing in groups ("Combing taskbar buttons: Always, hide labels")? The taskbar itself is always present; I don't have it set to hide. I do have "Show taskbar on all displays" turned on. Disabling that didn't change anything.
[/quote]

Sorry please ignore my comment.
My crash was not related to your issue.
I didn't look at your image closely enough.
Want a dark skin for MM5? This is the one that works best for me .. elegant, compact & clear.
viking74
Posts: 13
Joined: Sat Jan 24, 2015 1:35 pm

Re: Maximized window doesn't fully cover secondary screen

Post by viking74 »

This kind of behaviour with two different resolution monitors has been going on for awhile, see these treads https://www.mediamonkey.com/forum/viewt ... p?t=100900, https://www.mediamonkey.com/forum/viewt ... 9&start=45 and https://www.mediamonkey.com/forum/viewt ... 33#p493933. I've submitted a bug ticket #3645 for one but I've also seen your issues as well.
Lowlander
Posts: 58843
Joined: Sat Sep 06, 2003 5:53 pm

Re: Maximized window doesn't fully cover secondary screen

Post by Lowlander »

I'm unable to reproduce, tried:
1) Different scaling setting between monitors
2) Different resolution setting between monitors
3) Taskbar set to auto-hide and to always show
Nihilism
Posts: 9
Joined: Wed Mar 03, 2021 1:53 am

Re: Maximized window doesn't fully cover secondary screen

Post by Nihilism »

I have 3 different monitors, all with different resolutions and scales (100,110 & 125%), and the Maximise works correctly for me on main and secondary screens. However the latest beta 5.0.3.2610 has reverted to always reopening on the main screen if it is closed from maximised on any other screen. Same behaviour as 'Multi-screen opening [#18683] https://www.mediamonkey.com/forum/viewt ... p?t=100900'

Peter
Post Reply