summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/salframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/unx/salframe.h')
-rw-r--r--vcl/inc/unx/salframe.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/vcl/inc/unx/salframe.h b/vcl/inc/unx/salframe.h
index 7bc7b8bc3167..0c56bc677d04 100644
--- a/vcl/inc/unx/salframe.h
+++ b/vcl/inc/unx/salframe.h
@@ -42,10 +42,13 @@ class SalI18N_InputContext;
namespace vcl_sal { class WMAdaptor; class NetWMAdaptor; class GnomeWMAdaptor; }
// X11SalFrame
-#define SHOWSTATE_UNKNOWN -1
-#define SHOWSTATE_MINIMIZED 0
-#define SHOWSTATE_NORMAL 1
-#define SHOWSTATE_HIDDEN 2
+enum class X11ShowState
+{
+ Unknown = -1,
+ Minimized = 0,
+ Normal = 1,
+ Hidden = 2
+};
enum class WMWindowType
{
@@ -86,7 +89,7 @@ class X11SalFrame final : public SalFrame
bool mbSendExtKeyModChange;
ModKeyFlags mnExtKeyMod;
- int nShowState_; // show state
+ X11ShowState nShowState_; // show state
int nWidth_; // client width
int nHeight_; // client height
tools::Rectangle maRestorePosSize;