Skip to content

Commit

Permalink
Traktor: Fixed resize event not being issued when widget becomes visi…
Browse files Browse the repository at this point in the history
…ble on X11.
  • Loading branch information
apistol78 committed Apr 15, 2024
1 parent 2f4edf3 commit 6cb0cbd
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion code/Ui/ConfigDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class T_DLLCLASS ConfigDialog : public Dialog

virtual void destroy() override;

virtual void update(const Rect* rc = 0, bool immediate = false) override;
virtual void update(const Rect* rc = nullptr, bool immediate = false) override;

virtual Rect getInnerRect() const override;

Expand Down
2 changes: 1 addition & 1 deletion code/Ui/Container.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class T_DLLCLASS Container : public Widget

virtual void fit(uint32_t axis);

virtual void update(const Rect* rc = 0, bool immediate = false) override;
virtual void update(const Rect* rc = nullptr, bool immediate = false) override;

virtual Size getMinimumSize() const override;

Expand Down
2 changes: 1 addition & 1 deletion code/Ui/Dock.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class T_DLLCLASS Dock : public Widget

DockPane* getPane() const;

virtual void update(const Rect* rc = 0, bool immediate = false) override;
virtual void update(const Rect* rc = nullptr, bool immediate = false) override;

private:
Ref< DockPane > m_pane;
Expand Down
2 changes: 1 addition & 1 deletion code/Ui/MultiSplitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class T_DLLCLASS MultiSplitter : public Widget
*/
bool create(Widget* parent, bool vertical = true);

virtual void update(const Rect* rc = 0, bool immediate = false) override;
virtual void update(const Rect* rc = nullptr, bool immediate = false) override;

virtual Size getMinimumSize() const override;

Expand Down
2 changes: 1 addition & 1 deletion code/Ui/PropertyList/PropertyList.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class T_DLLCLASS PropertyList : public Widget

virtual bool paste();

virtual void update(const Rect* rc = 0, bool immediate = false) override;
virtual void update(const Rect* rc = nullptr, bool immediate = false) override;

virtual Size getMinimumSize() const override;

Expand Down
2 changes: 1 addition & 1 deletion code/Ui/QuadSplitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class T_DLLCLASS QuadSplitter : public Widget
*/
bool create(Widget* parent, const Point& position, bool relative, int border = 16);

virtual void update(const Rect* rc = 0, bool immediate = false) override;
virtual void update(const Rect* rc = nullptr, bool immediate = false) override;

virtual Size getMinimumSize() const override;

Expand Down
2 changes: 1 addition & 1 deletion code/Ui/Splitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class T_DLLCLASS Splitter : public Widget
*/
bool create(Widget* parent, bool vertical = true, Unit position = 100_ut, bool relative = false, Unit border = 16_ut);

virtual void update(const Rect* rc = 0, bool immediate = false) override;
virtual void update(const Rect* rc = nullptr, bool immediate = false) override;

virtual Size getMinimumSize() const override;

Expand Down
3 changes: 3 additions & 0 deletions code/Ui/X11/WidgetX11Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ class WidgetX11Impl
m_data.mapped = false;
}
}

SizeEvent sizeEvent(m_owner, m_rect.getSize());
m_owner->raiseEvent(&sizeEvent);
}
else // Becoming hidden.
{
Expand Down

0 comments on commit 6cb0cbd

Please sign in to comment.