musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.29k stars 2.66k forks source link

Minimize, Restore, and Close buttons disappear from upper-right corner, if taskbar is shown on primary monitor but hidden on others #17420

Open AlexAndPedro opened 1 year ago

AlexAndPedro commented 1 year ago

Issue type

Choose option...

Bug description

The Minimize, Restore, and Close buttons disappear from upper-right corner when the software is on full-screen in a different monitor other than the main one.

Steps to reproduce

Edited by @DmitryArefiev

  1. Go to Taskbar settings>Multiple displays
  2. Turn off Show taskbar on all displays option (see comment )
  3. Open MuseScore 4
  4. Drag the software to the top side of a different monitor so that the software becomes full-screen.
  5. Buttons from upper-right corner are not there

Screenshots/Screen recordings

image

MuseScore Version

6.0.2

Regression

Doesn't occur in MS3 Occurs in MS 4.0.0

Operating system

Windows 10

Additional context

No response

cbjeukendrup commented 1 year ago

I think this is a duplicate of https://github.com/musescore/MuseScore/issues/15749 and https://github.com/musescore/MuseScore/issues/16794, which are supposed to be fixed (the fix will be in MuseScore 4.1). Could you please check in the latest nightly build (https://musescore.org/en/nightly-builds) if it's indeed working correctly for you in that build?

AlexAndPedro commented 1 year ago

I checked the nightly build. The problem is still there.

cbjeukendrup commented 1 year ago

Hm... good to know!

DmitryArefiev commented 1 year ago

@AlexAndPedro Hi! I can't reproduce it on my side.. Can you show your Taskbar settings and Display settings please? Here are mine: Capture Capture2

AlexAndPedro commented 1 year ago

image image image image

This is what I have

DmitryArefiev commented 1 year ago

Oh, I have only 2 monitors.. And still can't reproduce with the same settings as yours.

The bug occurs when you when you move MS to the 2nd monitor or 3, 4? Can you reproduce it with only 2 monitors connected?

AlexAndPedro commented 1 year ago

My main monitor is 2 in my screenshot. The bug occurs when moving to monitor 1, 3, or 4.

I disconnected monitors 1 and 4, and moving MuseScore to monitor 3 still shows the bug.

DmitryArefiev commented 1 year ago

I was able to reproduce the bug with two monitors but only with the condition if the taskbar is hidden on 2nd monitor and shown on 1st monitor Capture

But on your previous screenshot that option is turned on. Can you check if the taskbar is hidden on your 2nd monitor and shown on 1st monitor?

AlexAndPedro commented 1 year ago

Only my main monitor (Monitor 2) has a taskbar. The other monitors (Monitors 1, 3, and 4) do not have a taskbar.

Also, I tried to experiment where the taskbar is present on all of the monitors, and the bug is nonexistent. So I believe that the bug only occurs if a monitor has no taskbars.

DmitryArefiev commented 1 year ago

Thanks!

But on your previous screenshot that option is turned on.

That's my mistake, I see now on your screenshot that option is turned off. Good, we found a precise steps to reproduce!

ErikBongers commented 1 year ago

These icons also disappear when the taskbar is set to auto-hide (in 4.0.2 on Win10). So, I think the title and the caption bar icons use the wrong coordinates. Screen coordinates perhaps instead of window coordinates?

HtoTheB commented 1 year ago

I have the same situation on a three monitor setup. The buttons only appear if I maximize MS4 on the window that has the taskbar. Win10 22H2. Happy to assist in debugging :)