Bug 354546

Summary: krunner window appears outside of visible area after reconnecting a screen
Product: [Plasma] krunner Reporter: Martin Steigerwald <Martin>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: justin.zobel, olaf.the.lost.viking, simonandric5, sknauss
Priority: NOR    
Version: 5.4.2   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: krunner attempting to open on wrong screen in the edge

Description Martin Steigerwald 2015-10-29 10:04:14 UTC
After disconnecting and then reconnected a screen / LCD display on the reconnected screen the krunner window appears outside of the visible area of it, while on the internal laptop display it still appears at the top of the screen.

Reproducible: Always

Steps to Reproduce:
1. Disconnect the external screen.
2. Reconnect the external screen.
3. Press Alt-F2 while on the external screen

Actual Results:  
Current window looses focus, but I do not see a krunner window sliding out from the top of the screen.

Expected Results:  
Window slides out at the top of the scren

Alt-F2 "killall krunner ; krunner" works around this issue.

This is on top of newest Qt 5.5.1. KDE Frameworks are compiled from git master, but I think the issue has been there before starting compiling it myself. krunner is from Debian plasma-workspace package.

xrandr configuration is at follows:

martin@merkaba:~> xrandr
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
LVDS1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.00*+  59.93    50.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+  50.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x720      60.00    50.00    59.94  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP3 disconnected (normal left inverted right x axis y axis)


Hardware is ThinkPad T520 with 15 inch Full HD display + 24 inch Full HD LED display P24T-7 from Fujitsu:

martin@merkaba:~> phoronix-test-suite system-info
Phoronix Test Suite v5.2.1
[…]
Hardware:
Processor: Intel Core i5-2520M @ 3.20GHz (4 Cores), Motherboard: LENOVO 42433WG, Chipset: Intel 2nd Generation Core Family DRAM, Memory: 16384MB, Disk: 300GB INTEL SSDSA2CW30 + 480GB Crucial_CT480M50, Graphics: Intel HD 3000 (1300MHz), Audio: Conexant CX20590, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205

Software:
OS: Debian unstable, Kernel: 4.3.0-rc7-tp520+ (x86_64), Desktop: KDE Frameworks 5, Display Server: X Server 1.17.2, Display Driver: intel 2.99.917, OpenGL: 3.3 Mesa 11.0.4, Compiler: GCC 5.2.1 20151010, File-System: btrfs, Screen Resolution: 3840x1080
Comment 1 Sandro Knauß 2015-12-18 15:28:15 UTC
Can confirm with current debian/sid packages.

Additionally, you can type the krunner command like "konsole" hit enter and a konsole is opened. Also you can select the krunner via Atl+Tab (but sill you can't see it)
Comment 2 OlafLostViking 2015-12-20 08:16:10 UTC
Confirm for Archlinux Plasma 5.5.1, KRunner 5.17.0.
Comment 3 Martin Steigerwald 2016-02-08 08:57:36 UTC
Created attachment 97081 [details]
krunner attempting to open on wrong screen in the edge

In a different display setup at work I know had a variant of this one. This time krunner tried to open in visible space, but only some border was drawn. See attached screenshots.

krunner tries to open at "a", while its supposed to open at "b".

+-------------------++--------------------+
|a                  ||         b          |
|       Laptop      ||  external display  |
|                   ||                    |
+-------------------++--------------------+
Comment 4 Justin Zobel 2020-11-25 00:42:20 UTC
I've just tested this and I am unable to replicate this issue.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I've set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 5 Martin Steigerwald 2020-11-25 07:44:33 UTC
I haven't seen this issue in a long, long time. Thus closing. Thanks.