Bug 468625 - Can't use virtual desktops after update
Summary: Can't use virtual desktops after update
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.27.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2023-04-17 18:29 UTC by maxlefou
Modified: 2023-07-27 12:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
buttbadger: Wayland+
buttbadger: X11+
buttbadger: NVIDIA+


Attachments
A video showing the behavior (677.01 KB, video/mp4)
2023-04-17 18:29 UTC, maxlefou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maxlefou 2023-04-17 18:29:29 UTC
Created attachment 158171 [details]
A video showing the behavior

SUMMARY
First, sorry if it's posted in the wrong category. Fact is, I'm not actually sure what exactly cause the glitch to happen. I assumed it's KWin since it's what I use but maybe I mistake.

Since the recent updates, I cannot use virtual desktops anymore. Only one desktop works. Any additional desktop will make it black, with no bars or widgets, making it impossible to leave it without the key shortcuts. Windows can still appear in this desktop if they are moved to it.

STEPS TO REPRODUCE
1. Start the Plasma desktop
2. Add a virtual desktop if there's none
3. Switch to this virtual desktop

OBSERVED RESULT
The virtual desktop is completely black. Doesn't display any widgets, bar or wallpaper. The mouse still shows, and a window that is moved to this desktop will behave normally. When maximized in this desktop, the window acts like if there were no bars at all. The only way to get out of this desktop is to use the key shortcuts. Happens to every additional virtual desktops created. Right click doesn't work either.

EXPECTED RESULT
The virtual desktop should show with the bars, widgets and wallpaper and should be fully functional.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.2.11
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Using X11. Haven't tried on Wayland and can't use it anyway.

ADDITIONAL INFORMATION
I included a video showing the behavior
Comment 1 maxlefou 2023-04-19 08:46:14 UTC
It might not be linked to this bug, but I also noticed that, while selecting "filter windows by current desktop" works fine, "filter windows by all other desktops" doesn't work properly, showing only a "show desktop" no matter how many programs are open, even if "include show desktop icon" is disabled. Happens with the virtual desktop settings and activities settings
Comment 2 maxlefou 2023-04-22 08:44:11 UTC
here's the journald logs that appears when a virtual desktop is created, just in case:
```
22/04/2023 10:42	xembedsniproxy	Container window visible, stack below
22/04/2023 10:42	xembedsniproxy	Container window visible, stack below
22/04/2023 10:42	kwin_x11	OpenGL vendor string:                   NVIDIA Corporation
22/04/2023 10:42	kwin_x11	OpenGL renderer string:                 NVIDIA GeForce GTX 960/PCIe/SSE2
22/04/2023 10:42	kwin_x11	OpenGL version string:                  3.1.0 NVIDIA 530.41.03
22/04/2023 10:42	kwin_x11	OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
22/04/2023 10:42	kwin_x11	Driver:                                 NVIDIA
22/04/2023 10:42	kwin_x11	Driver version:                         530.41.3
22/04/2023 10:42	kwin_x11	GPU class:                              Unknown
22/04/2023 10:42	kwin_x11	OpenGL version:                         3.1
22/04/2023 10:42	kwin_x11	GLSL version:                           1.40
22/04/2023 10:42	kwin_x11	X server version:                       1.21.1
22/04/2023 10:42	kwin_x11	Linux kernel version:                   6.2.12
22/04/2023 10:42	kwin_x11	Requires strict binding:                no
22/04/2023 10:42	kwin_x11	GLSL shaders:                           yes
22/04/2023 10:42	kwin_x11	Texture NPOT support:                   yes
22/04/2023 10:42	kwin_x11	Virtual Machine:                        no
22/04/2023 10:42	kwin_x11	WobblyWindowsConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	BlurConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	ZoomConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	WindowViewConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	SlidingPopupsConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	SlideConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	OverviewConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	MagicLampConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	KscreenConfig::instance called after the first use - ignoring
22/04/2023 10:42	kwin_x11	DesktopGridConfig::instance called after the first use - ignoring
```
Comment 3 maxlefou 2023-04-22 08:49:00 UTC
This also happens on wayland and reports pretty much the same logs as previously (except it says wayland instead of X11
Comment 4 maxlefou 2023-05-11 12:01:14 UTC
updated kwin to 5.27.5, problem still occurs.
Please.
Comment 5 maxlefou 2023-05-15 17:07:34 UTC
Tried the same distro I use on a virtual desktop. The problem doesn't occur.
Tried to reset all the KDE plasma settings on my main machine. Problem still occurs.
Tried to reinstall my distro entirely. Problem still occurs!
What is going on?!
Comment 6 maxlefou 2023-07-07 14:49:33 UTC
Still not working. But I noticed that, on x11, if the window composer is disabled by a program, changing of desktop will just freeze the entire screen instead of showing black. It unfreezes when going back to the first desktop with alt+tab.

Please.
Comment 7 Zamundaaa 2023-07-27 10:19:23 UTC
Have you tried creating a new user account and testing it there?
Comment 8 maxlefou 2023-07-27 10:27:05 UTC
(In reply to Zamundaaa from comment #7)
> Have you tried creating a new user account and testing it there?

thanks for the suggestion!

I just tried and virtual desktops worked on the new account!

That means the problem is in the KDE settings, as i expected first. I don't know which one it can be since i already tried to reset all the kde settings.
Comment 9 Zamundaaa 2023-07-27 10:43:18 UTC
Do you maybe have some KWin script or window rules active? They can force windows to be on specific virtual desktops only
Comment 10 maxlefou 2023-07-27 10:58:08 UTC
(In reply to Zamundaaa from comment #9)
> Do you maybe have some KWin script or window rules active? They can force
> windows to be on specific virtual desktops only

Yes, i was using those before, just to get discord on the second desktop and maximized. But it was working fine until some update arrived. One day, after some kde/plasma update, it suddenly stopped working, for no reason. It was making it difficult to access the second desktop.

I could fix the problem by getting the .config and .local from a fresh new user, pasting it on the old one and reboot. Your suggestion saved me! :)