diff options
author | fluxgen <fluxgen> | 2002-04-04 14:23:30 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-04-04 14:23:30 (GMT) |
commit | 598cd8a7fd5ab42c95ced857757fc5bf4c1c5eef (patch) | |
tree | 704edc74de64432a6544cf2c27cf164b0eccc679 /src/Window.hh | |
parent | e4d3840f267f95c50299ca725b2dfb1202a09801 (diff) | |
download | fluxbox_pavel-598cd8a7fd5ab42c95ced857757fc5bf4c1c5eef.zip fluxbox_pavel-598cd8a7fd5ab42c95ced857757fc5bf4c1c5eef.tar.bz2 |
added toggleDecoration and setDecoration functions
Diffstat (limited to 'src/Window.hh')
-rw-r--r-- | src/Window.hh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/Window.hh b/src/Window.hh index 7d61873..4611385 100644 --- a/src/Window.hh +++ b/src/Window.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.hh,v 1.16 2002/04/04 13:19:10 fluxgen Exp $ | 25 | // $Id: Window.hh,v 1.17 2002/04/04 14:23:30 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef WINDOW_HH | 27 | #ifndef WINDOW_HH |
28 | #define WINDOW_HH | 28 | #define WINDOW_HH |
@@ -117,6 +117,9 @@ public: | |||
117 | LAYER_TOP = 0x08 | 117 | LAYER_TOP = 0x08 |
118 | }; | 118 | }; |
119 | 119 | ||
120 | enum Decoration {DECOR_NONE=0, DECOR_NORMAL, DECOR_TINY, DECOR_TOOL}; | ||
121 | |||
122 | |||
120 | FluxboxWindow(Window, BScreen * = 0); | 123 | FluxboxWindow(Window, BScreen * = 0); |
121 | virtual ~FluxboxWindow(void); | 124 | virtual ~FluxboxWindow(void); |
122 | 125 | ||
@@ -197,6 +200,9 @@ public: | |||
197 | void propertyNotifyEvent(Atom); | 200 | void propertyNotifyEvent(Atom); |
198 | void exposeEvent(XExposeEvent *); | 201 | void exposeEvent(XExposeEvent *); |
199 | void configureRequestEvent(XConfigureRequestEvent *); | 202 | void configureRequestEvent(XConfigureRequestEvent *); |
203 | |||
204 | void setDecoration(Decoration decoration); | ||
205 | void toggleDecoration(); | ||
200 | 206 | ||
201 | static void showError(FluxboxWindow::Error error); | 207 | static void showError(FluxboxWindow::Error error); |
202 | 208 | ||
@@ -235,6 +241,7 @@ private: | |||
235 | unsigned int workspace_number; | 241 | unsigned int workspace_number; |
236 | unsigned long current_state; | 242 | unsigned long current_state; |
237 | WinLayer m_layer; | 243 | WinLayer m_layer; |
244 | Decoration old_decoration; | ||
238 | 245 | ||
239 | struct _client { | 246 | struct _client { |
240 | FluxboxWindow *transient_for, // which window are we a transient for? | 247 | FluxboxWindow *transient_for, // which window are we a transient for? |
@@ -256,7 +263,7 @@ private: | |||
256 | 263 | ||
257 | struct _decorations { | 264 | struct _decorations { |
258 | bool titlebar, handle, border, iconify, | 265 | bool titlebar, handle, border, iconify, |
259 | maximize, close, menu, sticky, shade, tab; | 266 | maximize, close, menu, sticky, shade, tab; |
260 | } decorations; | 267 | } decorations; |
261 | 268 | ||
262 | struct _functions { | 269 | struct _functions { |
@@ -309,7 +316,9 @@ private: | |||
309 | void startMoving(Window win); | 316 | void startMoving(Window win); |
310 | void stopMoving(); | 317 | void stopMoving(); |
311 | void startResizing(XMotionEvent *me, bool left); | 318 | void startResizing(XMotionEvent *me, bool left); |
312 | void stopResizing(Window win=0); | 319 | void stopResizing(Window win=0); |
320 | |||
321 | |||
313 | #ifdef GNOME | 322 | #ifdef GNOME |
314 | 323 | ||
315 | void updateGnomeAtoms(); | 324 | void updateGnomeAtoms(); |