summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-07-16 06:19:58 +0000
committerphintuka <phintuka>2008-07-16 06:19:58 +0000
commitc553d2cd12dca377776a71f81d1258f42f25d7a9 (patch)
tree4a98a5a5a4c2e9bea364ba18dec7651c2ca257d5
parent668b65f5e77e06040558002557d7688813ac251c (diff)
downloadxineliboutput-c553d2cd12dca377776a71f81d1258f42f25d7a9.tar.gz
xineliboutput-c553d2cd12dca377776a71f81d1258f42f25d7a9.tar.bz2
Moved set_border before set_fullscreen_props
-rw-r--r--xine_sxfe_frontend.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index 69e5879e..c228c138 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.73 2008-07-15 14:54:29 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.74 2008-07-16 06:19:58 phintuka Exp $
*
*/
@@ -241,6 +241,24 @@ static void set_fs_size_hint(sxfe_t *this)
XSetNormalHints(this->display, this->window[1], &hint);
}
+static void set_border(sxfe_t *this, int border)
+{
+ MWMHints mwmhints;
+
+ if(this->window_id > 0)
+ return;
+
+ this->no_border = border ? 0 : 1;
+
+ /* Set/remove border */
+ mwmhints.flags = MWM_HINTS_DECORATIONS;
+ mwmhints.decorations = this->no_border ? 0 : 1;
+ XChangeProperty(this->display, this->window[0],
+ this->xa_MOTIF_WM_HINTS, this->xa_MOTIF_WM_HINTS, 32,
+ PropModeReplace, (unsigned char *) &mwmhints,
+ PROP_MWM_HINTS_ELEMENTS);
+}
+
static void set_fullscreen_props(sxfe_t *this)
{
XEvent ev;
@@ -282,24 +300,6 @@ static void set_fullscreen_props(sxfe_t *this)
XUnlockDisplay(this->display);
}
-static void set_border(sxfe_t *this, int border)
-{
- MWMHints mwmhints;
-
- if(this->window_id > 0)
- return;
-
- this->no_border = border ? 0 : 1;
-
- /* Set/remove border */
- mwmhints.flags = MWM_HINTS_DECORATIONS;
- mwmhints.decorations = this->no_border ? 0 : 1;
- XChangeProperty(this->display, this->window[0],
- this->xa_MOTIF_WM_HINTS, this->xa_MOTIF_WM_HINTS, 32,
- PropModeReplace, (unsigned char *) &mwmhints,
- PROP_MWM_HINTS_ELEMENTS);
-}
-
static void set_above(sxfe_t *this, int stay_above)
{
XEvent ev;