Bug 446452 - mpv window gets resized when launching another application
Summary: mpv window gets resized when launching another application
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.23.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-04 01:28 UTC by Chang Liu
Modified: 2022-01-24 12:27 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.