https://bugs.kde.org/show_bug.cgi?id=434620
Bug ID: 434620 Summary: Changing size constraint doesn't update title bar buttons position Product: kwin Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: decorations Assignee: kwin-bugs-n...@kde.org Reporter: damir_poro...@live.com Target Milestone: --- SUMMARY kwin seem to be not updating the tittle bar buttons position when the buttons count change. We have a use case where we switch to fixed size (which has only two buttons, minimize and close), then adjust the widget size (here the buttons position is probably updated), then we switch back resizable size (this adds the third button, maximize), but the button position stays the same and the maximize buttons pushes the close button outside the visible frame. STEPS TO REPRODUCE 1. Set widget size constraint to fixed: mLayout->setSizeConstraint(QLayout::SetFixedSize); 2. Adjust widget size: QWidget::adjustSize(); 3. Revert widget size constraint back to value that was previously set: mLayout->setSizeConstraint(QLayout::SetMinAndMaxSize); OBSERVED RESULT The close button is no longer visible, if you enlarge the widget manually so that you move the right border further to the right side, the close button becomes visible again. EXPECTED RESULT Changing size constraint in a way that the tittle bar button count is changed should also update the position of the buttons so that all buttons are visible. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.71.0 Qt Version: 5.12.7 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.