kwinOverview icon indicating copy to clipboard operation
kwinOverview copied to clipboard

Multimonitor issue

Open FrauH0lle opened this issue 7 years ago • 6 comments

Hey there,

great work you have done with your script! However, I am encountering an issue in my multimonitor setup, shown below: grafik

What happens is, that the overview is not only drawn on the left, primary monitor but takes the increased height of the right one as a starting point: grafik

Thus, the upper part is missing and not usable.

FrauH0lle avatar May 19 '18 09:05 FrauH0lle

That's a fairly amusing looking screenshot, although I imagine quite frustrating : )

I no longer have a second monitor to test, so I'm surprised the code in there even functions with a second monitor as it is. I'm not surprised that it only shows up on the primary monitor, but it looks like I need to at least tweak the calculation for determining where to place the dashboard.

It looks like the addition of a second monitor positions 0,0 at a different point in the screen space. I'll try to implement some fixes, if you wouldn't mind testing them once they're available.

astatide avatar May 19 '18 16:05 astatide

Thanks a lot for your quick response. I think you are right that 0,0 is not aligned with the upper left of the primary monitor. Looking at a fullscreen screenshot grafik one can see the black space. I don't know the underlying mechanisms but I guess it is easier to always create a rectangular drawing surface for the windows.

Anyways, I'll happily test the fixes as soon as they are implemented. This is probably the last extension to make my KDE experience nearly perfect.

FrauH0lle avatar May 19 '18 17:05 FrauH0lle

@DonHugo69, can you try out the multiscreen branch? Although it doesn't respond on the fly to changes in geometry/positioning, it should at least respect how the screens are set up when KWin is launched.

https://github.com/ajoshpratt/kwinOverview/tree/multiscreen

If you change orientation, you'll currently have to restart KWin, which isn't a great long term solution, but does at least work.

I tested this mostly by hooking up both outputs from my video card to my monitor, so lemme know if this works in a real world scenario!

astatide avatar May 20 '18 15:05 astatide

It looks better but not perfect: grafik The script takes the wrong monitor.

If there are any debug I can provide, just tell me where to look or which parameters to set up.

FrauH0lle avatar May 20 '18 20:05 FrauH0lle

Out of curiosity, which monitor was active when you enabled the overview?

It looks like I'll probably need to attach to the 'screen changed' signal and adjust screen geometry and position. I made some attempts to do so when I had time last weekend, but couldn't properly debug it at the time. I'll try sorting that out soon.

astatide avatar May 24 '18 15:05 astatide

Indeed, I noticed that if I start the right monitor after the left one, the overview appears on the left (primary) one.

I can observe a similar behavior for Latte Dock, which initializes on the right screen and then moves itself to the primary one on startup.

FrauH0lle avatar May 24 '18 19:05 FrauH0lle