QMPlay2 icon indicating copy to clipboard operation
QMPlay2 copied to clipboard

Could you update macos app for choosing the default screen for two screen users?

Open Lamineyamal4 opened this issue 6 months ago • 12 comments

Lamineyamal4 avatar Jun 14 '25 16:06 Lamineyamal4

Could you explain?

zaps166 avatar Jun 14 '25 18:06 zaps166

I have two screens. I had to choose my macbook screen as the main screen from macos. Because when I chose my monitor as main screen my monitor didn't work. You can choose your default starting screen for all the other apps . Qmplay2 has not a choice. so it starts with macbook screen all the time. I'm using my monitor only all the time.

ghost avatar Jun 14 '25 18:06 ghost

I have two screens. I had to choose my macbook screen as the main screen from macos. Because when I chose my monitor as main screen my monitor didn't work.

I'm not macOS user, but can't you just turn off your macbook screen? Windows and all Linux environment allow to turn off any screen.

You can choose your default starting screen for all the other apps.

I'm not macOS user, how to do it?

zaps166 avatar Jun 14 '25 18:06 zaps166

CC @RJVB

zaps166 avatar Jun 14 '25 18:06 zaps166

I'm not macOS user, but can't you just turn off your macbook screen? Windows and all Linux environment allow to turn off any screen.

Thanks I'm new with monitor I have not known that, it works.

I'm not macOS user, how to do it?

When you right click the app there is choices button. you can choose starting screen at this choices area.

ghost avatar Jun 14 '25 18:06 ghost

Thanks I'm new with monitor I did not know that, it works.

So it's all working now, right?

When you right click the app there is choices button. you can choose starting screen at this choices area.

I have to check it when I'll be able to use two screens on macOS.


Btw, macOS DMG for QMPlay2 25.06.11 is now available for download.

zaps166 avatar Jun 14 '25 21:06 zaps166

When you right click the app there is choices button. you can choose starting screen at this choices area.

The OS will normally reopen applications at the location they were when last closed, too.

RJVB avatar Jun 14 '25 22:06 RJVB

Thanks I'm new with monitor I have not known that, it works.

So it's all working now, right?

When i close macbook lid only monitor works. This is what i want but i have not known. But other users may want to use two screens open so this feature that i demanded at first may be wanted by other users.

ghost avatar Jun 15 '25 01:06 ghost

When i close macbook lid only monitor works. This is what i want but i did not know. But other users may want to use two screens open so this feature that i demanded at first my be wanted by other users.

I don't think there is much need for spending time on that as long as the system remembers where and on which screen the application was last placed by the user. You'd need to open the application anyway to change something in the preferences, so why not just use the gui?

There may be a use for indicating which screen should be used for fullscreen displaying, instead of using the current screen. But that too only really makes sense if the main window remains visible and usable, which I don't think is the case.

RJVB avatar Jun 15 '25 11:06 RJVB

I don't think there is much need for spending time on that as long as the system remembers where and on which screen the application was last placed by the user.

My macbook is not working like you said above. Qmplay2 opens at the macbook screen everytime. The only way to open qmplay2 at the monitor is closing macbook lit. But when macbook lit is closed you can not close the macbook. It enters sleeping mode. So you have to open macbook lid again. I decided i will use two screens open. And it would be better for me you update as i demanded first.

ghost avatar Jun 15 '25 16:06 ghost

I have to check it. QMPlay2 position it's window, so maybe this is the problem, it can move the window placed by macOS (incorrectly) somewhere else - I don't know. I don't have access to MacBook now. I can try to connect 2 external screens to other Mac in few days.

zaps166 avatar Jun 15 '25 17:06 zaps166

Image Image

I sent my macbook's screenshots: First one is the all the other apps Second one is Qmplay2

ghost avatar Jun 15 '25 17:06 ghost

Image Image

I sent my macbook's screenshots: First one is the all the other apps Second one is Qmplay2

I can't see any app with this option.

zaps166 avatar Jun 16 '25 18:06 zaps166

I can't see any app with this option.

First screenshot

ghost avatar Jun 16 '25 18:06 ghost

I can't see any app with this option.

First screenshot

On Mac I have.

zaps166 avatar Jun 16 '25 18:06 zaps166

On Mac I have.

It is because you are not using monitor or my macbook is m1 model

ghost avatar Jun 16 '25 18:06 ghost

On Mac I have.

It is because you are not using monitor or my macbook is m1 model

Connected 2 monitors. I can reproduce QMPlay2 bug, but I don't see these options on any other application (including native macOS apps).

zaps166 avatar Jun 16 '25 19:06 zaps166

Reproducible on Linux/X11, too. Also it's worse on Qt 6.9 than 5.15.

zaps166 avatar Jun 16 '25 19:06 zaps166

I think all multi-screen issues were fixed on master branch. Thanks for bug report!

zaps166 avatar Jun 16 '25 20:06 zaps166

One thing to keep in mind on Mac is that the system will get all clever on your windows if you disconnect a screen with a session open. The only way to avoid that is to use FUS (Fast User Switch) to switch to the login screen. In that case, your running applications don't get redistributed onto the remaining (= the laptop's) screen.

I do disconnect my external screen every day before suspending the Mac (rather, I turn off the Thunderbolt dock via which it's connected), but not after going to the login screen, and I stay there until my external screen is active again after waking.

Maybe that's why just about every window opened when I restart an application appears where I left it. I even have plist files containing the position info in ~/Library/Preferences ... (so I guess we'll see if the fix for this ticket causes a regression for me :p)

RJVB avatar Jun 16 '25 20:06 RJVB

Before this fix, QMPlay2 with Qt 6 were unable to restore window on different screen than it started. The window started at top-left (probably) default screen with minimum possible size. With Qt5 it started on correct screen with correct size, but always at center. Both are bugs in QMPlay2 where QMPlay2 forced window to be at wrong screen with wrong size and wrong position (behavior depended on Qt version). Exactly same behavior on X11, so not macOS related issue.

I don't think these changes have anything to do with your use case.

zaps166 avatar Jun 16 '25 21:06 zaps166

On Monday June 16 2025 14:05:26 Błażej Szczygieł wrote:

I don't think these changes have anything to do with your use case.

Strange. My use case is simply starting QMplay2. I do it from the commandline, but that shouldn't make a difference. And I checked, I did not patch the placement code.

I'm using Qt 5.9 on Mac and 5.12 on Linux though.

RJVB avatar Jun 16 '25 21:06 RJVB