aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.hh
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-11-14 19:54:37 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-11-14 19:54:37 +0100
commitc2629b5f08a874109ac0b22cb21ed0fc79bc6531 (patch)
tree6e6e4c5265a2b14a61d89b19410b2b9ecf9763e1 /dw/layout.hh
parentd26ad8f97c37987fc919a3c156538b3671a0ef1d (diff)
Only limit resizes on the top-level layout
Buttons also have their own Layout, which will try to resize every time the window has changed. We are only interested in the top-level layout, as is the one that has a problem on some pages.
Diffstat (limited to 'dw/layout.hh')
-rw-r--r--dw/layout.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/layout.hh b/dw/layout.hh
index e2b64901..08360e19 100644
--- a/dw/layout.hh
+++ b/dw/layout.hh
@@ -247,12 +247,13 @@ private:
int resizeIdleCounter, queueResizeCounter, sizeAllocateCounter,
sizeRequestCounter, getExtremesCounter, resizeCounter;
+ bool resizeLimit;
void enterResizeIdle () { resizeIdleCounter++; }
void leaveResizeIdle () { resizeIdleCounter--; }
public:
- Layout (Platform *platform);
+ Layout (Platform *platform, bool limit=true);
~Layout ();
inline void connectLink (LinkReceiver *receiver)