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

            Bug ID: 488260
           Summary: Minimum window size is incorrect when min. width or
                    height is 0
    Classification: Plasma
           Product: kwin
           Version: master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: core
          Assignee: kwin-bugs-n...@kde.org
          Reporter: nicolas.fe...@gmx.de
  Target Milestone: ---

Running the following QML code:
--------------
import QtQuick

Window {
    width: 500
    height: 500
    minimumHeight: 333
}
--------------

results in the minimum size being 150x150

Running with WAYLAND_DEBUG shows "xdg_toplevel#40.set_min_size(0, 333)", so
KWin receives the correct size.

The problem is the use of isEmpty() in
https://invent.kde.org/plasma/kwin/-/blob/master/src/wayland/xdgshell.cpp#L578
which is true because the width is 0.  This results in (0, 0) being passed to
xdgshellwindow and later being expanded to (150, 150).

The resulting min. size should be (150, 333) or (0, 333)

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

Reply via email to