Bug 446452

Summary: mpv window gets resized when launching another application
Product: [Plasma] kwin Reporter: Chang Liu <goduck777>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.23.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Chang Liu 2021-12-04 01:28:02 UTC
SUMMARY

With the new version of kwin, launching any new application can cause mpv window in wayland to resize to the video's original format.

This only appears in new version of kwin wayland. Old version and other wayland compositor do not have the issue.

STEPS TO REPRODUCE
1. open a video file in mpv

2. resize the window

3. launch another application in kde, through keyboard shortcut or through xdg-open

OBSERVED RESULT

mpv window get shrinked to fit the original video size

EXPECTED RESULT

mpv window size should not be affected

SOFTWARE/OS VERSIONS
Linux/KDE Plasma

KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Comment 1 Chang Liu 2021-12-14 15:38:07 UTC
Related issue at mpv

https://github.com/mpv-player/mpv/issues/9599

It seems that plasma is sending output event when it is not necessary.
Comment 2 Vlad Zahorodnii 2022-01-19 15:53:25 UTC
We made a few mpv resizing fixes in 5.24. Please reopen this bug report if the issue is reproducible in 5.24.
Comment 3 Chang Liu 2022-01-20 16:54:37 UTC
(In reply to Vlad Zahorodnii from comment #2)
> We made a few mpv resizing fixes in 5.24. Please reopen this bug report if
> the issue is reproducible in 5.24.

I confirm it is fixed on the kde side.