Bug 455961

Summary: KRunner pops up at wrong position after active screen changed since 5.25
Product: [Plasma] plasmashell Reporter: CUI Hao <cuihao.leo>
Component: generic-multiscreenAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, alexander.lohnau, nate, notmart, plasma-bugs-null
Priority: NOR Keywords: regression
Version First Reported In: 5.25.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.26
Sentry Crash Report:
Attachments: KRunner pops up at top-left edge of the left screen
KRunner pops up at the center of the right screen

Description CUI Hao 2022-06-26 17:55:13 UTC
Created attachment 150168 [details]
KRunner pops up at top-left edge of the left screen

SUMMARY

KRunner popup appears at wrong position after active screen changed since 5.25.

Before 5.25, sometimes (fairly rare) KRunner could pop up from wrong position, which is usually top left edge. But now the issue appears frequently and I find a way to stably trigger it.

Screen configuration:
- X11
- GPU:
  - iGPU:  Intel UHD Graphics 630 (i7-10700K) as PRIMARY GPU.
  - dGPU: NVIDIA GeForce GTX 1650.
- Dual screen: The left screen is connected to Intel iGPU. The right screen is connected to NVIDIA dGPU.

STEPS TO REPRODUCE
1. Move cursor to the left screen, launch KRunner (by pressing Alt-F2). This is a warm up.
2. Move cursor to the right screen, launch KRunner two times.
3. Move cursor to the left screen again, launch KRunner two times.

OBSERVED RESULT

Step 2: The first time KRunner pops up at the center of the right screen.  The second time it pops up at normal position (top center).
Step 3: The first time KRunner pops up at the top-left edge of the left screen. The second time it pops up at normal position.

EXPECTED RESULT

KRunner always pops up at top center of the current screen.


SOFTWARE/OS VERSIONS
Linux: Arch Linux, latest (non-testing) packages, 5.18.6-zen1-1-zen kernel
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Comment 1 CUI Hao 2022-06-26 17:55:57 UTC
Created attachment 150169 [details]
KRunner pops up at the center of the right screen
Comment 2 Alexander Lohnau 2022-08-11 10:36:37 UTC
Are you on X11 or Wayland?
Comment 3 CUI Hao 2022-08-11 15:36:01 UTC
(In reply to Alexander Lohnau from comment #2)
> Are you on X11 or Wayland?

X11.

Nvidia + Intel dual cards barely work on Plasma Wayland (ref: #452219)
Comment 4 Nate Graham 2022-09-08 20:20:30 UTC
Cannot reproduce on X11 or Wayland with current git master. Assuming it's been fixed; please re-open if yo still encounter it on Plasma 5.26 after upgrading to that version once it's released in about a month. Thanks!