summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2011-02-26 12:28:43 +0000
committerphintuka <phintuka>2011-02-26 12:28:43 +0000
commit60feb6f045215c2e3d0db77d1479281463a08178 (patch)
tree2c0104e2e1048d719fc5d7ee23757e83e14cf83a
parent5c1756549561e5ec2b8a4e9b25a51f423ce5e870 (diff)
downloadxineliboutput-60feb6f045215c2e3d0db77d1479281463a08178.tar.gz
xineliboutput-60feb6f045215c2e3d0db77d1479281463a08178.tar.bz2
Regonize root window ID
-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;