wayland: Initialize xdg-toplevel size hints to 0,0
QSize() initializes the width and the height to -1x-1 by default.
This commit is contained in:
parent
61332caa20
commit
cfbee55c2a
2 changed files with 5 additions and 6 deletions
|
@ -378,8 +378,8 @@ void XdgToplevelInterfacePrivate::reset()
|
|||
|
||||
windowTitle = QString();
|
||||
windowClass = QString();
|
||||
minimumSize = QSize();
|
||||
maximumSize = QSize();
|
||||
minimumSize = QSize(0, 0);
|
||||
maximumSize = QSize(0, 0);
|
||||
pending = XdgToplevelCommit{};
|
||||
stashed.clear();
|
||||
|
||||
|
@ -579,8 +579,7 @@ QString XdgToplevelInterface::windowClass() const
|
|||
|
||||
QSize XdgToplevelInterface::minimumSize() const
|
||||
{
|
||||
return QSize(d->minimumSize.width() > 0 ? d->minimumSize.width() : 0,
|
||||
d->minimumSize.height() > 0 ? d->minimumSize.height() : 0);
|
||||
return d->minimumSize;
|
||||
}
|
||||
|
||||
QSize XdgToplevelInterface::maximumSize() const
|
||||
|
|
|
@ -148,8 +148,8 @@ public:
|
|||
XdgSurfaceInterface *xdgSurface;
|
||||
QString windowTitle;
|
||||
QString windowClass;
|
||||
QSize minimumSize;
|
||||
QSize maximumSize;
|
||||
QSize minimumSize = QSize(0, 0);
|
||||
QSize maximumSize = QSize(0, 0);
|
||||
|
||||
protected:
|
||||
void xdg_toplevel_destroy_resource(Resource *resource) override;
|
||||
|
|
Loading…
Reference in a new issue