Bug 431023 - [patch] KWindowSystem does not respect the selected X11 screen
Summary: [patch] KWindowSystem does not respect the selected X11 screen
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kwindowsystem
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.77.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-01 03:29 UTC by John Lindgren
Modified: 2021-01-03 15:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.78


Attachments
xcb: Work with the active screen as reported by QX11Info::appScreen(). (7.78 KB, patch)
2021-01-01 03:29 UTC, John Lindgren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Lindgren 2021-01-01 03:29:33 UTC
Created attachment 134431 [details]
xcb: Work with the active screen as reported by QX11Info::appScreen().

SUMMARY

On a traditional X11 multi-head setup (e.g. two screens ":0.0" and ":0.1" active), KWindowSystem ignores the screen it is run on and enumerates/manages windows on screen #0.

The fix is pretty simple as it's just a matter of passing the correct screen number to NETRootInfo::NETRootInfo().

STEPS TO REPRODUCE
1. export DISPLAY=:0.1
2. run https://github.com/jlindgren90/qmpanel

OBSERVED RESULT
qmpanel lists the windows on screen #0

EXPECTED RESULT
qmpanel should list the windows on screen #1

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Comment 1 Nicolas Fella 2021-01-01 18:10:59 UTC
Plesse submit patches to https://invent.kde.org/frameworks/kwindowsystem
Comment 2 Christoph Feck 2021-01-01 20:31:52 UTC
Instructions are documented at https://community.kde.org/Get_Involved/development#Submit_a_Merge_Request
Comment 3 John Lindgren 2021-01-02 18:38:54 UTC
So I have to create yet another online account. Submitting a patch to the bugtracker isn't good enough?

Any why is my email a valid username on the bugtracker, but not on identity.kde.org?

You folks sure don't make contributing easy.
Comment 4 John Lindgren 2021-01-02 18:40:28 UTC
"Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request."

This is ridiculous. Please just take the patch.
Comment 5 John Lindgren 2021-01-02 18:48:25 UTC
Okay I fought with your website a bit more and got it to work.

https://invent.kde.org/frameworks/kwindowsystem/-/merge_requests/12