summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-07-18 11:34:25 +0000
committerphintuka <phintuka>2007-07-18 11:34:25 +0000
commite7f180406fac657bf432732fc03275517500b335 (patch)
treee32d8e0a7e0ffe5b31c92bfd6a54c661421cc4fd
parentb261a92d4af2a02f3b739020d5dbeb6d066436f0 (diff)
downloadxineliboutput-e7f180406fac657bf432732fc03275517500b335.tar.gz
xineliboutput-e7f180406fac657bf432732fc03275517500b335.tar.bz2
Fix _WIN_LAYER property (http://developer.gnome.org/doc/standards/wm/c44.html)
Patch from Timo Eskola
-rw-r--r--xine_sxfe_frontend.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index b9722ae6..8485f1ac 100644
--- a/xine_sxfe_frontend.c
+++ b/xine_sxfe_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_sxfe_frontend.c,v 1.26 2007-06-12 20:55:11 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.27 2007-07-18 11:34:25 phintuka Exp $
*
*/
@@ -64,6 +64,13 @@
#include "xine_frontend.h"
#include "xine/post.h"
+#ifndef WIN_LAYER_NORMAL
+ #define WIN_LAYER_NORMAL 4
+#endif
+#ifndef WIN_LAYER_ONTOP
+ #define WIN_LAYER_ONTOP 6
+#endif
+
#define MWM_HINTS_DECORATIONS (1L << 1)
#define PROP_MWM_HINTS_ELEMENTS 5
typedef struct _mwmhints {
@@ -303,7 +310,7 @@ static void set_above(sxfe_t *this, int stay_above)
XUnlockDisplay(this->display);
/* _WIN_LAYER */
- propvalue[0] = stay_above ? 10 : 6;
+ propvalue[0] = stay_above ? WIN_LAYER_ONTOP : WIN_LAYER_NORMAL;
XLockDisplay(this->display);
XChangeProperty(this->display, this->window[0], XInternAtom(this->display, "_WIN_LAYER", False),
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)propvalue,