MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

Window Controls not shown on second monitor

Open schollexpos opened this issue 2 years ago • 7 comments

Issue type

UI bug

Bug description

The window controls (minimize, maximize and close) are not shown in the upper right corner of the musescore window (and can't be interacted with) when the window is launched on or moved to second monitor in maximized view.

Steps to reproduce

  1. Open Musescore
  2. Move Window to second monitor
  3. Maximize window
  4. The Window Controls are not displayed anymore

Screenshots/Screen recordings

grafik

(scores removed from screenshot by me)

MuseScore Version

OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.1.1-232071203, revision: github-musescore-musescore-e4d1ddf

Regression

No.

Operating system

Windows 10

Additional context

My System: Windows 11 with two monitors with 1920x1080 and same DPI

schollexpos avatar Nov 05 '23 12:11 schollexpos

Related to #19809

cbjeukendrup avatar Nov 05 '23 12:11 cbjeukendrup

@schollexpos does pressing F11 to exit full-screen mode get the controls back for you?

iainhallam avatar Feb 02 '24 23:02 iainhallam

@schollexpos Is this issue still actual in 4.3.2 / master?

zacjansheski avatar Jul 03 '24 20:07 zacjansheski

@zacjansheski 4.3.2 still does this on Windows 10.

iainhallam avatar Jul 03 '24 21:07 iainhallam

And the master nightly builds from https://musescore.org/en/nightly-builds?

cbjeukendrup avatar Jul 03 '24 21:07 cbjeukendrup

Yup - OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.4.0-241850505, revision: github-musescore-musescore-d46107f has the same behaviour. It opens on a secondary screen full-screen with no controls, and requires F11 to come out of that mode. Dragging it to the top of the main screen, it maximises, with controls visible; dragging to the top of a secondary screen, it again goes full-screen.

iainhallam avatar Jul 04 '24 00:07 iainhallam

OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.4.0-242390800, revision: github-musescore-musescore-0fcd11b

Now has a slightly different behaviour. My three screens are labelled 3, 1, 2 by Windows. If I maximise on screen 1 (my main screen with taskbar, etc.) all is well. If I maximise on screen 2 (the rightmost one), I now have window controls and can drag away from maximised. If I maximise on screen 3 (leftmost), the controls disappear, but now F11 makes the screen flash, and the controls don't appear. I need to press F11 again to get out of maximised mode.

iainhallam avatar Aug 28 '24 10:08 iainhallam

I wanted to experiment whether it mattered which monitor was the "primary" monitor. In MuseScore 4.4 and Windows 11 24H2, if I make the vertical monitor my primary display, MuseScore can maximize correctly on that display, but not no longer maximize correctly on my laptop's built in monitor, because it is no longer the primary display.

The scale of the two monitors is the same at 150% (recommended), so it is not a scale difference.

davidlbangs avatar Sep 09 '24 04:09 davidlbangs

MuseScore 4.4.1 does not handle the act of changing the primary display well at all. If I change my primary display to a different monitor then launch MuseScore again, it does not draw its window at all. I can not find its window until I set the primary monitor back to the same it used to be.

Now, after changing primary display with MuseScore running, its screen image becomes garbled and doesn't respond to any imput. It is just an image of its former glory, as shown in the screenshot.

However, I can force quit it and relaunch it , and it opens normal. So changing my primary display with it running is better than when not running.

Screenshot 2024-09-08 214342

davidlbangs avatar Sep 09 '24 04:09 davidlbangs

It occurs to me that MuseScore is remembering its screen position relative to whatever is the primary monitor, instead of remembering it relative to the window canvas (or leftmost monitor) like every other app does. So, if I change my primary monitor to the right monitor while MuseScore is on the right monitor, the window position is interpreted as being off to the right of my right monitor. If it is on my left monitor when I change the primary monitor from right to left, it is now off to the left of the left monitor.

This sounds off topic to this forum, but I think it is all related. MuseScore is paying attention to which monitor is primary, and it really should not. All the monitors are arranged relatively to a canvas, not to the primary monitor.

davidlbangs avatar Sep 09 '24 04:09 davidlbangs

Can this get prioritized higher? I commonly have MuseScore maximized on a secondary display, and sometimes I want to move it back to the primary display. The entire title bar becomes unclickable after MuseScore 4 is maximized on a secondary display. The workarounds, which are not shared here, are...

  • Right click on MS4 instance in taskbar and click "Restore" to bring it back to windowed mode
  • Using [Windows Key] + Left Arrow / Right Arrow to move the window back to the primary monitor.

I would love to just be able to drag the window back from secondary to primary. Lack of support for things like this are why I still use MuseScore 3.6.2 more often than MuseScore 4.

jernanigans avatar Jan 13 '25 02:01 jernanigans

@jernanigans @davidlbangs @iainhallam could you please test the build from https://github.com/musescore/MuseScore/pull/28517? Direct link to Windows build: https://github.com/musescore/MuseScore/actions/runs/15776851409/artifacts/3369337423

Eism avatar Jun 20 '25 10:06 Eism

Fixed in #28517

DmitryArefiev avatar Jun 25 '25 14:06 DmitryArefiev