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

            Bug ID: 498221
           Summary: Resizable windows under Wayland aren't automatically
                    shrunk to avoid having parts cut off like they are
                    under X11
    Classification: Plasma
           Product: kwin
           Version: 6.2.4
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwin-bugs-n...@kde.org
          Reporter: e...@horse64.org
  Target Milestone: ---

SUMMARY

Resizable windows under Wayland aren't automatically shrunk to avoid having
parts cut off like they are under X11. This affects a multitude of applications
and toolkits, and after contacting both app devs and toolkits about this, see
e.g. https://github.com/libsdl-org/SDL/issues/11747 , it seems to be the case
that 1. this works with XWayland windows in a Plasma Wayland session but not
Wayland windows, and 2. due to not knowing how large server side decorations
will be this is apparently not easily solvable on the app or toolkit side.
Therefore, this appears to be something KWin should probably be doing.

Dealing with a too large window as a user requires multiple clicks. Since the
lower border exceeding the screen bounds means it can't be directly grabbed,
the window needs to be first shrunk from the top, then moved up via the title
bar, then perhaps shrunk from the top again if the amount the user shrunk it
was too few, then moved up again, and then finally the lower part will be
reachable again. Doing this regularly for apps that spawn too large is time
consuming and mechanically challenging.

STEPS TO REPRODUCE

1. Have a small enough screen size and high enough DPI scaler that some
resizable apps that choose a normally reasonable default size to launch at,
will now have parts of the window cut off. It needs to be KDE Plasma 6 Wayland
session, the app needs to be a native Wayland app, and the app needs to be
resizable.
2. The app may now spawn too large to fit the screen.
3. The app can be manually resized to fit the screen now, but this is rather
tedious. If you force the app to use an X11 socket and XWaland mode, it will be
made to fit the screen without user intervention.

OBSERVED RESULT

Resizable windows that spawn from native wayland apps that can be easily
manually resized to fit the screen, will spawn cut off. XWayland windows are
resized to fit.

EXPECTED RESULT

Both native Wayland apps with resizable windows, as well as XWayland resizable
windows, are resized to fit as long as the minimum window size geometry allows
for that to happen.

SOFTWARE/OS VERSIONS

Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: postmarketOS v24.12 based on 3.21.0 with kernel 6.12.4
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION

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

Reply via email to