aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-15 11:46:06 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-15 11:46:06 (GMT)
commit215939d6edcbd88aeb00745ec14f526f037ddb20 (patch)
treec45771d10bcedca3882d354414fe631eb8b3c44c /src/FbWinFrame.hh
parent0689a0a4a8252d46a72048269faf00dba52a73c3 (diff)
downloadfluxbox-215939d6edcbd88aeb00745ec14f526f037ddb20.zip
fluxbox-215939d6edcbd88aeb00745ec14f526f037ddb20.tar.bz2
let FbWinFrame handle decorations in fullscreen state
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r--src/FbWinFrame.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh
index c9e15d0..5c93727 100644
--- a/src/FbWinFrame.hh
+++ b/src/FbWinFrame.hh
@@ -175,7 +175,7 @@ public:
175 175
176 /// set focus/unfocus style 176 /// set focus/unfocus style
177 void setFocus(bool newvalue); 177 void setFocus(bool newvalue);
178 void setFullscreen(bool value) { m_state.fullscreen = value; } 178 void setFullscreen(bool value);
179 void setMaximized(int value) { m_state.maximized = value; } 179 void setMaximized(int value) { m_state.maximized = value; }
180 180
181 void setFocusTitle(const std::string &str) { m_label.setText(str); } 181 void setFocusTitle(const std::string &str) { m_label.setText(str); }
@@ -232,6 +232,12 @@ public:
232 void setDecorationMask(unsigned int mask) { m_state.deco_mask = mask; } 232 void setDecorationMask(unsigned int mask) { m_state.deco_mask = mask; }
233 void applyDecorations(); 233 void applyDecorations();
234 234
235 /// determine if the given decoration should be shown in current state
236 bool useBorder() const;
237 bool useTabs() const;
238 bool useTitlebar() const;
239 bool useHandle() const;
240
235 // this function translates its arguments according to win_gravity 241 // this function translates its arguments according to win_gravity
236 // if win_gravity is negative, it does an inverse translation 242 // if win_gravity is negative, it does an inverse translation
237 void gravityTranslate(int &x, int &y, int win_gravity, unsigned int client_bw, bool move_frame = false); 243 void gravityTranslate(int &x, int &y, int win_gravity, unsigned int client_bw, bool move_frame = false);