aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.hh
diff options
context:
space:
mode:
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);