From dd73be3fde4bc2b0331f75e68aca31382a70cf41 Mon Sep 17 00:00:00 2001 From: phintuka Date: Tue, 1 Jul 2014 19:17:14 +0000 Subject: sxfe: fix toggling fullscreen mode --- xine_sxfe_frontend.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index 1102ef13..9d6d1046 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.208 2014-06-23 12:20:28 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.209 2014-07-01 19:17:14 phintuka Exp $ * */ @@ -2786,14 +2786,20 @@ static void XConfigureEvent_handler(sxfe_t *this, XConfigureEvent *cev) /* update video window size */ if (this->x.width != cev->width || this->x.height != cev->height) { - LOGDBG("Video window size changed from %dx%d to %dx%d", this->x.width, this->x.height, cev->width, 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); + + if ( ( this->fullscreen && this->window[1] == cev->window) || + (!this->fullscreen && this->window[0] == cev->window)) { + + LOGDBG("Video window size changed from %dx%d to %dx%d", this->x.width, this->x.height, cev->width, 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); + } } if(this->window[0] == cev->window && this->check_move) { -- cgit v1.2.3