https://bugs.kde.org/show_bug.cgi?id=356225

--- Comment #299 from Andriy Gapon <a...@icyb.net.ua> ---
(In reply to Andriy Gapon from comment #298)
Actually, it seems that the problem goes as deep as Qt as Xinerama.
Qt (at least Qt 4.x for KDE 4.x) uses Xinerama to query monitor information.

Now, compare what Xinerama reports on my system with 2 and 3 monitors:

Xinerama screen count: 2
Screen #0
        id      0
        pos     +1280+0
        size    1920x1080
Screen #1
        id      1
        pos     +0+0
        size    1280x1024

Xinerama screen count: 3
Screen #0
        id      0
        pos     +1280+0
        size    1920x1080
Screen #1
        id      1
        pos     +3200+0
        size    1920x1080
Screen #2
        id      2
        pos     +0+0
        size    1280x1024

See how monitor with 1280x1024 resolution got its ID switched from 1 to 2.
And new monitor (the rightmost, at +3200+0) took 1.

I am not sure how Xinerama works internally, if it assigns the IDs on a whim or
if they come from graphics drivers.
Maybe Qt should use XRandR instead of Xinerama for querying the monitor
configuration.  XRandR provides much richer information.
In any case, I am not sure if KDE, being Qt based, can do much here.
Well, I guess it could stop using QDesktopWidget or whatever Q-thing it uses
and do its own thing, but that would be too radical.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to