From 7a5e714de3c3ad7b345b4b3ab244e324e161652e Mon Sep 17 00:00:00 2001 From: onestone Date: Thu, 14 Dec 2006 19:55:14 +0000 Subject: aquamarine: support new decoration interface --- src/window.cpp | 10 ++++++++-- 1 file 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 #include +#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) | -- cgit v1.1