Bug 1212921

Summary: kwin_x11 will crash when closing native kde apps if `max2NewVirtualDesktop` used
Product: [openSUSE] openSUSE Tumbleweed Reporter: David shiran <sauntor>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David shiran 2023-07-02 17:31:44 UTC
Components Installed && Used:
1. nvidia-drivers-G06, and `prime-select nvidia`, set display scale to 200%
2. latte-dock
3. global appmenu panel
4. kwin script `https://github.com/Aetf/kwin-maxmize-to-new-desktop`, change it's settings to `Fullscreen And Maximize`

Reproduce Steps:
1. Open `Settings` -> `Workspace` -> `Virtual Desktop`, only keep one virtual desktop and remove all others
2. open a kde native app like `Dolphin`, `Kate` or `Settings`
3. maximize it, and it will be moved to a new virtual desktop
4. and then close it by click the Close button on the title bar, just as you close it, the kde will crash and restart

PS:
1. max2NewVirtualDesktop works well for other apps which is not kde native, like vscode, chrome, vlc, etc.
2. I trace max2NewVirtualDesktop's log by using:
```shell
journalctl -f QT_CATEGORY=js QT_CATEGORY=kwin_scripting
```
and found that, max2NewVirtualDesktop do the same things for kde native app and other app
Comment 1 David shiran 2023-07-05 07:02:01 UTC
is there anyone care about this bug?