Bug 447376

Summary: On Wayland, with Dolphin inactive, right-clicking Dolphin's integrated terminal produces a menu with a title bar
Product: [Applications] dolphin Reporter: nyanpasu64 <nyanpasu64>
Component: panels: terminalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: bugseforuns, kfm-devel
Priority: NOR    
Version: 21.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description nyanpasu64 2021-12-22 08:40:51 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
When I start a Plasma Wayland session, open Dolphin and the integrated terminal, then focus another window and right-click Dolphin's integrated terminal, the menu has a title bar and appears in the wrong spot.

STEPS TO REPRODUCE
1. Open a Dolphin window and press F4 to open the integrated terminal.
2. Open or focus another window (eg. Firefox).
3. Right-click Dolphin's integrated terminal.

OBSERVED RESULT
The right-click menu has a title bar named Dolphin, and opens near the top-right of the display. 

EXPECTED RESULT
The right-click menu looks like a menu and opens at the mouse cursor.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.15.10-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: llvmpipe

ADDITIONAL INFORMATION
I'm using kwin_wayland built from the v5.23.4 Git tag, and I modified Options::loadCompositingConfig() to assume KWIN_COMPOSE=Q (since I'm testing QPainter compositing and my GPU is stuck on EGLStreams). I'm 80% confident this bug appears on regular kwin_wayland with KWIN_COMPOSE=Q, but I'm not sure if this bug appears with regular compositing.
Comment 1 Patrick Silva 2022-04-01 16:00:28 UTC
Can reproduce with Konsole 22.04 beta.

Operating System: Arch Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.17.1-arch1-1 (64-bit)
Graphics Platform: Wayland