Skip to content

Conversation

@jchv
Copy link
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 with multi-monitor/hidpi on KDE Plasma (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: #361

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 f05dd78 into bsnes-emu:master Aug 30, 2025
4 of 5 checks passed
@jchv jchv deleted the hiro-qt-desktop-use-qscreen branch August 31, 2025 02:10
@jchv jchv changed the title Use QScreen for Desktop::{size,workspace} hiro/qt: Use QScreen for Desktop::{size,workspace} Sep 1, 2025
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