Bug 408269 - Applications launch in the wrong monitor sometimes.
Summary: Applications launch in the wrong monitor sometimes.
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-04 00:01 UTC by manuelchaves
Modified: 2019-06-04 21:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description manuelchaves 2019-06-04 00:01:45 UTC
(I'm not sure if this is the right component, I had no idea where to put this)

STEPS TO REPRODUCE
1. Have 2 monitors
2. Click on a icon only task in the taskbar of the first monitor to launch an application

OBSERVED RESULT
Sometimes it starts the applications in the second monitor.

EXPECTED RESULT
It should always start in the monitor where it was launched.

Operating System: KDE neon 5.15
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.0
Kernel Version: 4.18.0-20-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-4690K CPU @ 3.50GHz
Memory: 15,6 GiB of RAM
Comment 1 Vlad Zahorodnii 2019-06-04 08:16:57 UTC
Please post your kwinrc.
Comment 2 manuelchaves 2019-06-04 19:45:19 UTC
https://termbin.com/qmpd

[$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js

[Compositing]
OpenGLIsUnsafe=false

[Desktops]
Id_1=455c0ede-de28-46b3-906f-a6b943b642cd
Id_2=4f304ac4-a426-4f6f-8a1b-7d0f94840582
Id_3=1a8c5fbf-a803-4373-9e19-c48432748ea7
Id_4=50fcd53d-49b2-4993-a407-f9c79af0c761
Name_1=1
Name_2=2
Name_3=3
Name_4=4
Number=4
Rows=1

[Effect-CoverSwitch]
TabBox=false
TabBoxAlternative=false

[Effect-Cube]
BorderActivate=9
BorderActivateCylinder=9
BorderActivateSphere=9

[Effect-DesktopGrid]
BorderActivate=9

[Effect-FlipSwitch]
TabBox=false
TabBoxAlternative=false

[Effect-PresentWindows]
BorderActivate=9
BorderActivateAll=9
BorderActivateClass=9

[ElectricBorders]
Bottom=None
BottomLeft=None
BottomRight=None
Left=None
Right=None
Top=None
TopLeft=None
TopRight=None

[Plugins]
desktopchangeosdEnabled=false
highlightwindowEnabled=true
slideEnabled=false

[Script-desktopchangeosd]
PopupHideDelay=1000
TextOnly=false

[SubSession: 58e8b5e4-e7c9-470a-a70a-ce003d0eb330]
active=-1
count=0

[TabBox]
ActivitiesMode=1
ApplicationsMode=0
BorderActivate=9
BorderAlternativeActivate=9
DesktopMode=1
HighlightWindows=true
LayoutName=org.kde.breeze.desktop
MinimizedMode=0
MultiScreenMode=0
ShowDesktopMode=0
ShowTabBox=true
SwitchingMode=0

[TabBoxAlternative]
ActivitiesMode=1
ApplicationsMode=0
DesktopMode=1
HighlightWindows=true
LayoutName=org.kde.breeze.desktop
MinimizedMode=0
MultiScreenMode=0
ShowDesktopMode=0
ShowTabBox=true
SwitchingMode=0

[Windows]
ElectricBorderCooldown=350
ElectricBorderCornerRatio=0.25
ElectricBorderDelay=150
ElectricBorderMaximize=true
ElectricBorderTiling=true
ElectricBorders=0
RollOverDesktops=false

[org.kde.kdecoration2]
BorderSize=Normal
ButtonsOnLeft=MS
ButtonsOnRight=HIAX
CloseOnDoubleClickOnMenu=false
library=org.kde.breeze
theme=
Comment 3 Vlad Zahorodnii 2019-06-04 20:54:49 UTC
Okay, it seems like mouse focus is moved to a client on the other screen for a brief moment.

You could either:
(a) Use a window rule to position the desired client;
(b) Enable "Active screen follows mouse", it's under Window Management, Window Behavior.

Though if the client specifically sets its position, I don't know how to deal with that case (perhaps create a window rule to disobey geometry requests?).
Comment 4 manuelchaves 2019-06-04 21:15:33 UTC
Windows Follow Mouse works, as long as I don't move the mouse elsewhere. But it's an improvement.