https://bugs.kde.org/show_bug.cgi?id=353975

--- Comment #236 from Trent M <twilightinz...@gmail.com> ---
Gene C is right; be careful that your window titles aren't showing any
sensitive information when you share your results. It is my bad for not
cautioning against that as well. I apologize.

Lukas, your test case proves that my hypothesis is correct in some situations.
It does not appear to be the case for all situations, but at least I was not
completely off base.

See here, when you are first experiencing the error:

> 0x02400017 -1 1280 0    1920 1080 lukas-laptop Arbeitsfläche — Plasma
> 0x0240001d -1 1920 0    1280 1024 lukas-laptop Arbeitsfläche — Plasma

These are the desktop windows. The third through seventh columns represent x
position, y position, width, and height, in that order. 

Now see the same windows when you are not having the problem:

> 0x02400017 -1 1280 0    1920 1080 lukas-laptop Arbeitsfläche — Plasma
> 0x0240001d -1 0    0    1280 1024 lukas-laptop Arbeitsfläche — Plasma

One of your monitors' desktop windows stays in the right place, the one at
1280,0. That's your right-side monitor. However, the desktop window that should
be covering your left monitor wanders off to 1920,0 in the case where you are
experiencing the black-screen bug, leaving the completely useless root window
exposed beneath it. And interestingly, it causes the two windows to overlap
*partially*, not completely. Lukas, on your right monitor, do you sometimes see
the wallpapers partially overlapped when this problem is occurring?

The fact that your monitors have different sizes exposes a pretty interesting
facet of this problem. During the case where the black screen monitor bug is
occurring, the desktop windows don't seem to know which of them is the
right-side monitor. The fact that the window for your 1280x1024 monitor goes to
1920,0 suggests that it thinks it's supposed to be on the right side for some
period of time, and it just never gets corrected.

Because your monitors are different sizes, you could actually fix this with
devilspie2 or a KWin script: you would check the sizes of the windows of class
plasmashell and type desktop. Whichever one is 1280x1024, you move it to 0,0.
Whichever one is 1920x1080, you move it to 1280,0. You would not be able to use
KWin's window rules to fix this though, because it doesn't let you match
windows on their sizes. For folks with monitors that are the same size though,
they're out of luck for a workaround; the windows seem to be identical
otherwise. They don't expose any differentiating information via xprop,
presumably because the windows are supposed to simply do the right thing by
themselves, and they're unfortunately not at the moment.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to