[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-21 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #18 from Christopher Snowhill  ---
Created attachment 170725
  --> https://bugs.kde.org/attachment.cgi?id=170725=edit
Screen shot of the messed up Steam announcement window

Yeah, this is what the Steam announcement window did in the background. It's
ordinarily a non-resizable window. So I guess that may complicate the size
restore. Still a little weird that the scale doesn't switch back upon being
restored to a 2.0 display, but also weird that the window size shrinks on scale
reduction, but doesn't grow on scale growing.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-21 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

Christopher Snowhill  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Resolution|FIXED   |---
 Status|RESOLVED|REOPENED

--- Comment #17 from Christopher Snowhill  ---
Disregard that, I spoke too soon. Steam maintains window positions, but the
sizes behave badly. The shrink to 1.0 scale shrinks the window sizes, then they
stay 1.0 until I click them again after the restore to the correct output. When
I click them, they restore to 2.0 scale, but the window frame size does not
double to match the scale change.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-21 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

Christopher Snowhill  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |FIXED
 Status|NEEDSINFO   |RESOLVED

--- Comment #16 from Christopher Snowhill  ---
The bug with Xwayland windows seems to be fixed with Plasma 6.1. Steam seems to
maintain a consistent sizing and position when the hotplug happens.

Wezterm behaves badly, but the bad behavior seems unrelated to this issue, and
is probably a different issue. It also behaves really badly when dragged across
the edge of the two displays. I'll post a video to the new issue. It may even
be a Wezterm issue and not a Plasma issue. It seems their app probably does not
like scaling change events.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-18 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #15 from Zamundaaa  ---
Git commit ed1bb6c6f0cecba01d15b75b212fdc839b2756c4 by Xaver Hugl.
Committed on 18/06/2024 at 13:24.
Pushed by zamundaaa into branch 'Plasma/6.1'.

autotests: add Xwayland scale changes to the output changes test
(cherry picked from commit e16069ae77cbacaeae1db9bca6641918ae3ada5e)

M  +1-1autotests/integration/CMakeLists.txt
M  +78   -0autotests/integration/outputchanges_test.cpp

https://invent.kde.org/plasma/kwin/-/commit/ed1bb6c6f0cecba01d15b75b212fdc839b2756c4

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-17 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #14 from Zamundaaa  ---
Git commit e16069ae77cbacaeae1db9bca6641918ae3ada5e by Xaver Hugl.
Committed on 17/06/2024 at 18:41.
Pushed by zamundaaa into branch 'master'.

autotests: add Xwayland scale changes to the output changes test

M  +1-1autotests/integration/CMakeLists.txt
M  +78   -0autotests/integration/outputchanges_test.cpp

https://invent.kde.org/plasma/kwin/-/commit/e16069ae77cbacaeae1db9bca6641918ae3ada5e

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-12 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #13 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/kwin/-/merge_requests/5884

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-12 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=487409

Zamundaaa  changed:

   What|Removed |Added

 Status|REPORTED|NEEDSINFO
 Resolution|--- |WAITINGFORINFO

--- Comment #12 from Zamundaaa  ---
Aha, yes that scale change is relevant - most likely the automatic resizing
conflicted with restoring the window geometry.
With that Xwayland scale change + Steam I managed to reproduce the issue on
6.0.4 and 6.0.5, but I also wrote an autotest and it doesn't happen with the
autotest or manual testing on Plasma 6.1. So I'm cautiously optimistic that
this bug is already fixed.

Please make sure to test with 6.1 as well once that's out.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-11 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

Christopher Snowhill  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |REPORTED

--- Comment #11 from Christopher Snowhill  ---
I'm going to throw out a guess. This appears to only be happening to Steam now,
which is an X11/Xwayland app.

When the primary display detaches, the windows migrate to the other display.
But then the global Xwayland scale factor automatically changes to the highest
scale factor, which is now 1.0. This causes the 3840x2160 virtual surface to
compact to 1920x1080 and all the window positions to become cropped to the top
left quadrant of the previous surface.

It would be nice if the integer scale factor could be configured manually, or
retained for longer in the event of a disconnect bounce like this.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-11 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #10 from Christopher Snowhill  ---
Created attachment 170400
  --> https://bugs.kde.org/attachment.cgi?id=170400=edit
kscreen-doctor after reconnect

After reconnect. Terminal didn't respond to keyboard input during the brief
moment where all the windows were on DP-2.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-11 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #9 from Christopher Snowhill  ---
Created attachment 170399
  --> https://bugs.kde.org/attachment.cgi?id=170399=edit
kscreen-doctor before disconnect

This is before the first disconnect.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-11 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=487409

Nate Graham  changed:

   What|Removed |Added

 Status|REPORTED|NEEDSINFO
 CC||n...@kde.org
   Keywords||multiscreen
 Resolution|--- |WAITINGFORINFO

--- Comment #8 from Nate Graham  ---
.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-10 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #7 from Zamundaaa  ---
It's okay. As for the bug report itself, could you give me the output of
> kscreen-doctor -o
before and after unplugging the screen, and the position and size of any window
before it got misplaced? You can get exact coordinates with the kwin debug
console (just search for it in krunner).

I want to plug those numbers into our autotest, which should've caught issues
like this

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-09 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #6 from Christopher Snowhill  ---
Sorry, I shouldn't have acted like that in a bug tracker. The situation gave me
too much anxiety to think clearly and handle it succinctly. I'll try to
remember that I need to move the "reported" status manually in the future when
dealing with Bugzilla trackers.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-09 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=487409

Zamundaaa  changed:

   What|Removed |Added

  Component|platform-drm|multi-screen
 Status|RESOLVED|REPORTED
 Resolution|NOT A BUG   |---

--- Comment #5 from Zamundaaa  ---
Calm down, it's just a bot. To shut it up, you just have to set the bug status
back to "reported" when providing the requested information

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-07 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

Christopher Snowhill  changed:

   What|Removed |Added

 Status|NEEDSINFO   |RESOLVED
 Resolution|WAITINGFORINFO  |NOT A BUG

--- Comment #4 from Christopher Snowhill  ---
Fine, since you didn't accept my submitted info, I'll just close this and cease
using Plasma.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-06-06 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #3 from Bug Janitor Service  ---
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-05-23 Thread Christopher Snowhill
https://bugs.kde.org/show_bug.cgi?id=487409

--- Comment #2 from Christopher Snowhill  ---
(In reply to Zamundaaa from comment #1)
> Are the misbehaving windows tiled in any way before the screens turn off?
> There's a whole bunch of fixes related to that + hotplugs in 6.0.5

They are not tiled, they are merely scattered around my primary display.

> 
> > Desktop should make an attempt to absorb the DRM event and seed a new DRM 
> > surface handle to the compositor.
> Delaying drm events by multiple seconds is not an option, and wouldn't
> reliably fix this either. No, the compositor needs to handle hotplug events
> properly, and KWin does have a bunch of code in place to do so.

You're right. But there's probably no adequate solution to this that also won't
have some form of jank. If I'd known what I know about this monitor now, I
probably wouldn't have bought it.

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

[kwin] [Bug 487409] LG monitor hotplug on DPMS power on causes several applications to resize their windows

2024-05-23 Thread Zamundaaa
https://bugs.kde.org/show_bug.cgi?id=487409

Zamundaaa  changed:

   What|Removed |Added

 Status|REPORTED|NEEDSINFO
 CC||xaver.h...@gmail.com
 Resolution|--- |WAITINGFORINFO

--- Comment #1 from Zamundaaa  ---
Are the misbehaving windows tiled in any way before the screens turn off?
There's a whole bunch of fixes related to that + hotplugs in 6.0.5

> Desktop should make an attempt to absorb the DRM event and seed a new DRM 
> surface handle to the compositor.
Delaying drm events by multiple seconds is not an option, and wouldn't reliably
fix this either. No, the compositor needs to handle hotplug events properly,
and KWin does have a bunch of code in place to do so.

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