From 60feb6f045215c2e3d0db77d1479281463a08178 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sat, 26 Feb 2011 12:28:43 +0000 Subject: Regonize root window ID --- xine_sxfe_frontend.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3