aboutsummaryrefslogtreecommitdiff
path: root/src/WindowState.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-27 20:29:35 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-27 20:29:35 (GMT)
commita2ec0c9bdd9ebcc713426a79209b9ca90b4db301 (patch)
tree3d7b659c38f3b01e4e09a4887dc7b7cf1f73689b /src/WindowState.hh
parent84c87a86f9365014b7425c56a2a1051c102df804 (diff)
downloadfluxbox-a2ec0c9bdd9ebcc713426a79209b9ca90b4db301.zip
fluxbox-a2ec0c9bdd9ebcc713426a79209b9ca90b4db301.tar.bz2
make FbWinFrame and FluxboxWindow share a WindowState object
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;