forked from quickshell/quickshell
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.
This commit is contained in:
parent
1e1ba93713
commit
b011cd9d33
1 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,9 @@
|
|||
#include "proxywindow.hpp"
|
||||
#include "windowinterface.hpp"
|
||||
|
||||
// see #include <qpa/qplatformwindow.h>
|
||||
static const int QWINDOWSIZE_MAX = ((1 << 24) - 1);
|
||||
|
||||
class ProxyFloatingWindow: public ProxyWindowBase {
|
||||
Q_OBJECT;
|
||||
|
||||
|
@ -46,10 +49,11 @@ public:
|
|||
&ProxyFloatingWindow::onMinimumSizeChanged
|
||||
);
|
||||
|
||||
Q_OBJECT_BINDABLE_PROPERTY(
|
||||
Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(
|
||||
ProxyFloatingWindow,
|
||||
QSize,
|
||||
bMaximumSize,
|
||||
QSize(QWINDOWSIZE_MAX, QWINDOWSIZE_MAX),
|
||||
&ProxyFloatingWindow::onMaximumSizeChanged
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue