summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-10-31 19:35:45 +0000
committerphintuka <phintuka>2009-10-31 19:35:45 +0000
commitc1386165761c589a8a162be652e4564d8adff62b (patch)
treebaac9f317b3655b9781493d819f8da5fb7da1bda
parent171cc587c824a5863dda59b99b284f968c2fc434 (diff)
downloadxineliboutput-c1386165761c589a8a162be652e4564d8adff62b.tar.gz
xineliboutput-c1386165761c589a8a162be652e4564d8adff62b.tar.bz2
Fixed sending window size to VDR
-rw-r--r--xine_sxfe_frontend.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index ff8bf1bb..4e502a71 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.115 2009-10-31 19:33:38 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.116 2009-10-31 19:35:45 phintuka Exp $
*
*/
@@ -1451,16 +1451,17 @@ static void XConfigureEvent_handler(sxfe_t *this, XConfigureEvent *cev)
hud_osd_resize(this, cev->window, cev->width, cev->height);
#endif
+ /* update video window size */
if (this->x.width != cev->width || this->x.height != cev->height) {
+ this->x.width = cev->width;
+ this->x.height = cev->height;
+
+ /* inform VDR about new size */
char str[128];
snprintf(str, sizeof(str), "INFO WINDOW %dx%d", this->x.width, this->x.height);
this->x.fe.send_event((frontend_t*)this, str);
}
- /* update video window size */
- this->x.width = cev->width;
- this->x.height = cev->height;
-
if(this->window[0] == cev->window && this->check_move) {
LOGDBG("ConfigureNotify reveived with x=%d, y=%d, check_move=%d",
cev->x, cev->y, this->check_move);