Skip to content

Use QScreen for Desktop::{size,workspace}#217

Merged
Screwtapello merged 1 commit into
higan-emu:masterfrom
jchw-forks:hiro-qt-desktop-use-qscreen
Sep 1, 2025
Merged

Use QScreen for Desktop::{size,workspace}#217
Screwtapello merged 1 commit into
higan-emu:masterfrom
jchw-forks:hiro-qt-desktop-use-qscreen

Conversation

@jchv
Copy link
Copy Markdown
Contributor

@jchv jchv commented Aug 30, 2025

Qt 5.0 adds the QScreen API, which exposes enough information that Desktop::{size,workspace} no longer needs to fall back to Win32/Xlib. I manually tested that this seems to give the same exact answers as the Xlib path (though it technically goes a different route for Desktop::size.)

Since this API doesn't exist until Qt 5.0, this breaks the Qt 4 build. However, Qt 4 is long dead now. Even if we wanted to test it and keep it working, it would be hard since no recent distro releases ship Qt 4. Instead of bifurcating this any further, I think the right thing to do is just drop Qt 4 support and remove all of the legacy Qt 4 paths for once and for all: #216

Mirrored in:

Qt 5.0 adds the QScreen API, which exposes enough information that
Desktop::{size,workspace} no longer needs to fall back to Win32/Xlib. I
manually tested that this seems to give the same exact answers as the
Xlib path (though it technically goes a different route for
Desktop::size.)
@Screwtapello Screwtapello merged commit 8f4df01 into higan-emu:master Sep 1, 2025
7 of 8 checks passed
@jchv jchv deleted the hiro-qt-desktop-use-qscreen branch September 2, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants