summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index a283897..fdaf2f6 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -62,6 +62,9 @@
#include <qcursor.h>
#include <qpopupmenu.h>
+#define BERYL_ADVANCED_DECORATION_VERSION 10121980
+#define DECOR_WINDOW_MASK (1 << 0)
+
#define GRAVITY_WEST (1 << 0)
#define GRAVITY_EAST (1 << 1)
#define GRAVITY_NORTH (1 << 2)
@@ -830,8 +833,7 @@ Aquamarine::Window::updateWindowProperties ()
long *data = mdata;
- // TODO: create defines for this
- *data++ = 1;
+ *data++ = BERYL_ADVANCED_DECORATION_VERSION;
memcpy (data++, &win, sizeof (win));
@@ -848,6 +850,10 @@ Aquamarine::Window::updateWindowProperties ()
*data++ = 0;
*data++ = 0;
+ *data++ = DECOR_WINDOW_MASK;
+ *data++ = 0xffff;
+ *data++ = 0x7fff;
+
// TOP LEFT
*data++ =
((GRAVITY_NORTH | GRAVITY_WEST) << 0) |