Bug 444797 - Window trying to center between displays
Summary: Window trying to center between displays
Status: REPORTED
Alias: None
Product: yakuake
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.08.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-01 23:07 UTC by Cameron
Modified: 2023-10-11 00:02 UTC (History)
1 user (show)

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


Attachments
yakuake window centered between 2 displays, with display arrangement settings visible (999.24 KB, image/png)
2021-11-01 23:07 UTC, Cameron
Details
yakuake at 100% size / width, with content on 2 displays (954.97 KB, image/png)
2021-11-01 23:09 UTC, Cameron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron 2021-11-01 23:07:17 UTC
Created attachment 143110 [details]
yakuake window centered between 2 displays, with display arrangement settings visible

SUMMARY

Yakuake is incorrectly centering the window when using in a multi display setup. I am using a laptop, with an external monitor. While the laptop screen is closed, everything works as expected.

When height / width is set to 100%, the window will take up the correct monitor + position most of the time (using the global open keybind). It will frequently shift the open position to be partly on each display. 

When height / width is set to 70%, the yakuake will hug the left side of the right display (still not correctly centered), but does not cross between displays like 100% does.


STEPS TO REPRODUCE
No special steps. Just multi monitor + global activate button

OBSERVED RESULT
See attached screenshot

EXPECTED RESULT
The window should correctly center itself on the desired display the same way that happens in single displays. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.10
KDE Plasma Version: 5.22.5
KDE Frameworks Version:  5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Cameron 2021-11-01 23:09:45 UTC
Created attachment 143111 [details]
yakuake at 100% size / width, with content on 2 displays
Comment 2 wonn 2023-10-11 00:02:36 UTC
This is an old bug, but I'm having similar enough behaviour on Manjaro 6.1.55-1 (Plasma 5.27.8 / frameworks 5.110.0 / QT 5.15.10) that I don't want to open a new bug report. On two monitors, Yakuake always opens on the correct monitor when the hotkey is pressed, but only is correctly centered when the mouse cursor is on the *other* monitor. When the mouse cursor is on the same monitor as the Yakuake window, it opens on the left side.

Steps to reproduce:
* Have a two-monitor setup (possibly also involving non-100% global scale; mine is at 125%), such that the primary monitor is on the right
* Set Yakuake to only open on the right / primary monitor
* Trigger Yakuake's window to open via hotkey, both while the mouse is on the right monitor and while the mouse is on the left monitor

Expected behaviour: Yakuake opens in the center every time
Observed behaviour: Yakuake opens in the center of the right monitor when the mouse cursor is on the left monitor, and opens on the left side of the right monitor when the mouse cursor is on the right monitor