Skip to content

Commit 81aee57

Browse files
committed
core/window: set FloatingWindow default max size to QWINDOWSIZE_MAX
Was previously zero, which will shrink the window to 1px depending on the display server.
1 parent 1e1ba93 commit 81aee57

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/window/floatingwindow.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
#include "proxywindow.hpp"
99
#include "windowinterface.hpp"
1010

11+
// see #include <qpa/qplatformwindow.h>
12+
#define QWINDOWSIZE_MAX ((1 << 24) - 1)
13+
1114
class ProxyFloatingWindow: public ProxyWindowBase {
1215
Q_OBJECT;
1316

@@ -46,10 +49,11 @@ class ProxyFloatingWindow: public ProxyWindowBase {
4649
&ProxyFloatingWindow::onMinimumSizeChanged
4750
);
4851

49-
Q_OBJECT_BINDABLE_PROPERTY(
52+
Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(
5053
ProxyFloatingWindow,
5154
QSize,
5255
bMaximumSize,
56+
QSize(QWINDOWSIZE_MAX, QWINDOWSIZE_MAX),
5357
&ProxyFloatingWindow::onMaximumSizeChanged
5458
);
5559
};

0 commit comments

Comments
 (0)