aboutsummaryrefslogtreecommitdiff
path: root/src/WindowState.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/WindowState.hh')
-rw-r--r--src/WindowState.hh10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/WindowState.hh b/src/WindowState.hh
index 3bc5d24..ea9b635 100644
--- a/src/WindowState.hh
+++ b/src/WindowState.hh
@@ -100,13 +100,21 @@ public:
100 shaded(false), fullscreen(false), maximized(0), 100 shaded(false), fullscreen(false), maximized(0),
101 x(0), y(0), width(1), height(1) { } 101 x(0), y(0), width(1), height(1) { }
102 102
103 void saveGeometry(int x, int y, unsigned int width, unsigned int height); 103 void saveGeometry(int x, int y, unsigned int width, unsigned int height,
104 bool force = false);
105
106 // returns what the state should be set to, without actually setting it
107 int queryToggleMaximized(int type) const;
104 108
105 bool useBorder() const; 109 bool useBorder() const;
106 bool useHandle() const; 110 bool useHandle() const;
107 bool useTabs() const; 111 bool useTabs() const;
108 bool useTitlebar() const; 112 bool useTitlebar() const;
109 113
114 bool isMaximized() const { return maximized == MAX_FULL; }
115 bool isMaximizedHorz() const { return (bool)(maximized & MAX_HORZ); }
116 bool isMaximizedVert() const { return (bool)(maximized & MAX_VERT); }
117
110 static int getDecoMaskFromString(const std::string &str); 118 static int getDecoMaskFromString(const std::string &str);
111 119
112 SizeHints size_hints; 120 SizeHints size_hints;