From 36db2d24ef4e14cb7f5fa82cba873beceae5c01e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 9 Aug 2002 23:55:18 +0000 Subject: set a window's decorations based on mwm and window type. Ignore the different blackbox 'levels' since they arent ever used anyways. This makes toggling a window's decor always work right too! Also, make XGrabServer calls while workspace warping ot make sure another window isnt grabbed in place of the one thats warping --- src/Window.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Window.hh') diff --git a/src/Window.hh b/src/Window.hh index 8143ade1..17157ffc 100644 --- a/src/Window.hh +++ b/src/Window.hh @@ -193,6 +193,7 @@ private: * the menu is not really decor, but it goes hand in hand with the decor */ DecorationFlags decorations; + DecorationFlags mwm_decorations; Corner resize_dir; WindowType window_type; @@ -256,7 +257,7 @@ private: Window createToplevelWindow(); Window createChildWindow(Window parent, Cursor = None); - void getWindowType(void); + bool getWindowType(void); void updateStrut(void); void getWMName(void); void getWMIconName(void); @@ -378,6 +379,7 @@ public: void beginMove(int x_root, int y_root); void beginResize(int x_root, int y_root, Corner dir); + void enableDecor(bool enable); void setFocusFlag(bool focus); void iconify(void); void deiconify(bool reassoc = True, bool raise = True); -- cgit v1.2.3