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

            Bug ID: 463063
           Summary: KWin_x11 only shows minimize and maximize button for
                    Qt::Dialog type window
    Classification: Plasma
           Product: kwin
           Version: 5.26.4
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: decorations
          Assignee: kwin-bugs-n...@kde.org
          Reporter: wzc782970...@gmail.com
  Target Milestone: ---

SUMMARY

KWin_x11 only shows minimize and maximize button for Qt::Dialog type window,
close button was not shown.

According to Qt documentation, Qt::Dialog...

> Indicates that the widget is a window that should be decorated as a dialog 
> (i.e., typically no maximize or minimize buttons in the title bar). This is 
> the default type for QDialog.

So in KWin it's completely the opposite behavior.

STEPS TO REPRODUCE

1. Go to
https://invent.kde.org/network/neochat/-/merge_requests/707#note_580407 and
save the sample code to test.qml
2. use qml executable to show the saved qml file
3. see the result

OBSERVED RESULT

Under Plasma desktop, the dialog will have only maximize and minimize button
but missing close button.

EXPECTED RESULT

Maximize and minimize button shouldn't be there and the close button should be
shown.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (rolling), KDE Plasma desktop environment
KDE Plasma Version: 5.6.24
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION

Aside from the redundant maximize and minimize button issue, the missing close
button issue *might* not be a kwin issue.

Please also see
https://invent.kde.org/network/neochat/-/merge_requests/707#note_580407 for
detailed information.

Let me know if you need any additional information.

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

Reply via email to