[Interest] Window ID of the current screen (root window)?
rich at kde.org
Fri Nov 20 14:55:55 CET 2020
On Fri, 20 Nov 2020 at 07:58, Volker Hilsheimer <volker.hilsheimer at qt.io>
> In Qt 6 there is no more Qt API to get the X11 root window for a display
> (also note that QDesktopWidget as a whole is gone).
> So, you either have to go native if you rely on X11 specific data
> structures (which the code does anyway, in verifying that there is a
> DISPLAY environment variable), or pass a pointer to (or index of) a QScreen
> if you want to place a UI on a specific display.
I'd hope there's a way to get the actual connection being used, rather than
relying on looking at the environment variables. For example, what happens
if -display is passed?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest