summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronestone <onestone>2006-12-14 19:55:14 +0000
committeronestone <onestone>2006-12-14 19:55:14 +0000
commit7a5e714de3c3ad7b345b4b3ab244e324e161652e (patch)
tree25e22f04a103262f9c712563c4feae605127dd6b
parent186632c36033c7080074fad72f655b00fbbb913b (diff)
downloadaquamarine-7a5e714de3c3ad7b345b4b3ab244e324e161652e.tar.gz
aquamarine-7a5e714de3c3ad7b345b4b3ab244e324e161652e.tar.bz2
aquamarine: support new decoration interface
-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) |