diff options
author | phintuka <phintuka> | 2014-07-01 19:17:14 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2014-07-01 19:17:14 +0000 |
commit | dd73be3fde4bc2b0331f75e68aca31382a70cf41 (patch) | |
tree | 660172ff5a10151be2d79057f87fee7d68f6ba84 | |
parent | 9364363ce77c011cc7408c90dbb0111f9946cedb (diff) | |
download | xineliboutput-dd73be3fde4bc2b0331f75e68aca31382a70cf41.tar.gz xineliboutput-dd73be3fde4bc2b0331f75e68aca31382a70cf41.tar.bz2 |
sxfe: fix toggling fullscreen mode
-rw-r--r-- | xine_sxfe_frontend.c | 24 |
1 files 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) { |