summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/gtk/gtkframe.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-10 16:19:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-10 20:57:02 +0200
commit34715eac43604ca9460ec731964f553a4507b285 (patch)
treece5b3e854d22324ab09c54d489fd4cb3b9340e6a /vcl/inc/unx/gtk/gtkframe.hxx
parent5aa48d61f82b2cbaa8995350e8c8d448d300c264 (diff)
gtk4: add some degree of support for minimized/maximized/default size
so we start up maximized instead of just a titlebar that needs to be expanded Change-Id: I60c8cdd22c5b2bb659ae10806ccde27e964d6733 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115342 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/unx/gtk/gtkframe.hxx')
-rw-r--r--vcl/inc/unx/gtk/gtkframe.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx
index 94f54989b323..e7fff2ffbcfe 100644
--- a/vcl/inc/unx/gtk/gtkframe.hxx
+++ b/vcl/inc/unx/gtk/gtkframe.hxx
@@ -59,6 +59,7 @@ class GtkDnDTransferable;
#if !GTK_CHECK_VERSION(4,0,0)
typedef GdkWindow GdkSurface;
+typedef GdkWindowState GdkToplevelState;
#endif
class GtkSalMenu;
@@ -189,9 +190,7 @@ class GtkSalFrame final : public SalFrame
SalFrameStyleFlags m_nStyle;
GtkSalFrame* m_pParent;
std::list< GtkSalFrame* > m_aChildren;
-#if !GTK_CHECK_VERSION(4, 0, 0)
- GdkWindowState m_nState;
-#endif
+ GdkToplevelState m_nState;
SystemEnvData m_aSystemData;
std::unique_ptr<GtkSalGraphics> m_pGraphics;
bool m_bGraphics;
@@ -210,7 +209,7 @@ class GtkSalFrame final : public SalFrame
Size m_aMaxSize;
Size m_aMinSize;
- tools::Rectangle m_aRestorePosSize;
+ tools::Rectangle m_aRestorePosSize;
OUString m_aTooltip;
tools::Rectangle m_aHelpArea;