summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xine_sxfe_frontend.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index 19aed810..88142367 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.145 2011-01-18 12:36:21 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.146 2011-02-26 12:28:43 phintuka Exp $
*
*/
@@ -1454,6 +1454,10 @@ static int sxfe_display_open(frontend_t *this_gen,
update_screen_size(this);
/* Output to existing window ? (embedded to another app) */
+
+ if (this->window_id == WINDOW_ID_ROOT) {
+ this->window_id = DefaultRootWindow(this->display);
+ }
if(this->window_id > 0) {
LOGMSG("sxfe_display_open(): Using X11 window %d for output", this->window_id);
this->window[0] = this->window[1] = (Window)this->window_id;