Bug 374504 - yakuake starts on the wrong screen
Summary: yakuake starts on the wrong screen
Status: CONFIRMED
Alias: None
Product: yakuake
Classification: Applications
Component: general (show other bugs)
Version: 3.0.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
: 417991 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-01-03 17:57 UTC by Mathias Homann
Modified: 2024-08-21 19:14 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Window rule settings for workaround (117.60 KB, image/png)
2021-05-29 05:39 UTC, Vk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Homann 2017-01-03 17:57:50 UTC
I'm runnning a dualscreen setup and yakuake keeps starting on the wrong screen.

I configure it to run on screen 1, but after a relog it goes back to screen 2. The only setting that works reliably is "show under cursor position".
Comment 1 Christian Muehlhaeuser 2020-03-10 15:10:54 UTC
*** Bug 417991 has been marked as a duplicate of this bug. ***
Comment 2 Christian Muehlhaeuser 2020-03-10 15:12:01 UTC
I can confirm this setting being reset every now and then here, as well.
Comment 3 bfederau 2020-05-29 08:35:00 UTC
I can confirm a similar behaviour. My dualscreen setup is that the Laptop monitor (screen 2) is left of the main monitor (screen 1). 

My task bar is on screen 1 and screen 2 has no task bar. 

Every time I log on my Kubuntu 20.04 yakuake is shown up on screen 1. If I close yakuake with F12 and open it again with F12 it shows up on my screen 2. In the settings menu screen->screen 2 is set but in the ~/.config/yakuakerc in the Window section Screen is set to 1.

What could be the reason that it switches the screen from 1 to 2 after hiding and showing yakuake after logon.
Comment 4 Vk 2021-05-29 05:39:40 UTC
Created attachment 138856 [details]
Window rule settings for workaround
Comment 5 Vk 2021-05-29 05:41:02 UTC
This may be kwin issue with multiple monitors using varying resolutions rather than Yakuake specific.
https://bugs.kde.org/show_bug.cgi?id=427875
https://www.reddit.com/r/kde/comments/9ijm5z/multi_monitors_remember_the_window_position/
Can confirm a variant of the suggested workaround in that Reddit post works for this.

To get Yakuake to opening on the desired screen:
Open System Settings > Window Management > Window Rules
Add New
Set "Window Class (application)" to "Substring Match" and enter text value "yakuake".
(Alternatively you can open Yakuake, pin the window so it stays open on focus loss, and use the "Detect Window Properties" to capture the desired matcher)
Set Match whole window class to "Yes"
Set Window types to "All selected"
Click Add Property, choose "Screen"
Set combo selection to "Force" and number selection to the screen you want Yakuake to open on. (In my case, 0 made it to open on the center screen.)
Click Apply
Close Yakuake, reopen, and check if it opens on the desired screen. You may have to experiment to yet it to stick to the right screen.


Added attachment for workaround example. 


My Info:
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.21.90
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-17-generic (64-bit)
Graphics Platform: X11
Graphics Processor: GeForce RTX 2070/PCIe/SSE2
Comment 6 Jannick 2024-08-21 19:14:19 UTC
This is a bug with Qt, I've opened a bugreport here: https://bugreports.qt.io/browse/QTBUG-128236
And also opened a workaround PR here: https://invent.kde.org/utilities/yakuake/-/merge_requests/127