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

            Bug ID: 439578
           Summary: Maximize button sometimes appears even in
                    non-resizable windows with xdg-decoration
           Product: kwin
           Version: 5.22.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: da...@ingeniumdigital.com
  Target Milestone: ---

SUMMARY

A wayland window using xdg-decoration to request server-side decorations will
sometimes show a (non-functional) maximize button in the title bar for windows
which are not resizable.

This seems to occur if the decoration is created before set_min_size() and
set_max_size() are called, but I've been unable thus far to conclusively
confirm that.

This affects libdecor, which always creates an xdg-decoration object when a
window is first created, and then simply toggles the mode later:
https://gitlab.gnome.org/jadahl/libdecoration/-/blob/82e8653af75348e5fcad4f490217c25959bb762a/src/libdecor.c#L497

SDL has worked around the issue in this commit:
https://github.com/libsdl-org/SDL/commit/efbb6ff9d70e791d755c9ece95f248d1055b10ab

There's some further discussion in the SDL issue for libdecor support:
https://github.com/libsdl-org/SDL/pull/4068#issuecomment-874626945

STEPS TO REPRODUCE
1. Build a version of SDL with libdecor support from this merge request:
https://github.com/libsdl-org/SDL/pull/4068
  - Note that you'll need to build libdecor first.
2. Run the SDL testwm2 app with this version of SDL. The maximize button should
be visible, but useless.
3. Running the same testwm2 app with libdecor disabled will correctly not have
a maximise button.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
(available in About System)
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.15.2
Qt Version: 5.83.0

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

Reply via email to