summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-07-16 06:23:36 +0000
committerphintuka <phintuka>2008-07-16 06:23:36 +0000
commit0b06ad5ff2c22a10bb33dab15e6294f520c382d8 (patch)
tree56dd0ce9cbc7afee02a3b888b66eeaa00dbd0091
parentb0651634a5013f3de72940ae13a3ce6e2cb3abe5 (diff)
downloadxineliboutput-0b06ad5ff2c22a10bb33dab15e6294f520c382d8.tar.gz
xineliboutput-0b06ad5ff2c22a10bb33dab15e6294f520c382d8.tar.bz2
Use set_border function
-rw-r--r--xine_sxfe_frontend.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index 385b998e..fbaee67a 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.75 2008-07-16 06:22:52 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.76 2008-07-16 06:23:36 phintuka Exp $
*
*/
@@ -271,6 +271,9 @@ static void set_fullscreen_props(sxfe_t *this)
set_fs_size_hint(this);
+ /* no border in fullscreen window */
+ set_border(this, this->window[1], 0);
+
memset(&ev, 0, sizeof(ev));
ev.type = ClientMessage;
ev.xclient.type = ClientMessage;
@@ -1016,18 +1019,9 @@ static int sxfe_display_open(frontend_t *this_gen, int width, int height, int fu
}
if(this->window_id <= 0) {
- MWMHints mwmhints;
/* full-screen window */
set_fullscreen_props(this);
-
- /* no border in fullscreen window */
- mwmhints.flags = MWM_HINTS_DECORATIONS;
- mwmhints.decorations = 0;
- XChangeProperty(this->display, this->window[1],
- this->xa_MOTIF_WM_HINTS, this->xa_MOTIF_WM_HINTS, 32,
- PropModeReplace, (unsigned char *) &mwmhints,
- PROP_MWM_HINTS_ELEMENTS);
}
/* Select input */