Bug 393731

Summary: kwin does not set xprop _NET_CURRENT_DESKTOP(CARDINAL) after login
Product: [Plasma] kwin Reporter: g111
Component: platform-x11-standaloneAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.12.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description g111 2018-05-01 15:42:37 UTC
"xprop -root" reports some X11-settings for the desktop. One of these settings is "_NET_CURRENT_DESKTOP(CARDINAL)" that returns the number of the current desktop.

The bug that I came across is, that this entry is not set after login. You have to switch the desktop one time to initialize this value.

Steps to reproduce:

* Login into the plasma desktop
* open konsole and execute: xprop -root | grep ^_NET_CURRENT_DESKTOP.CARDINAL

This should print:
_NET_CURRENT_DESKTOP(CARDINAL) = 0

But instead nothing is printed. The line is not present in the xprop output.

* Switch the desktop to another one and back again to desktop 0
* execute the xprop command again

Now the output correctly is:
_NET_CURRENT_DESKTOP(CARDINAL) = 0
Comment 1 Martin Flöser 2018-05-01 16:04:04 UTC

*** This bug has been marked as a duplicate of bug 391034 ***
Comment 2 g111 2018-05-01 16:22:54 UTC
Ah, great. Thank you for the forthcoming fix. And sorry that I did not find the duplicate before reporting this issue.