summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-12 12:43:14 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-12 12:43:14 +0000
commit36d0d92f217f8aaf2536a882606ad277b7ce512a (patch)
tree60a5a5180b75af1c3c9d3ca37713de0338395d8e /libvo
parent62ca18ed4782c32bad4a721bad8673d8804de776 (diff)
downloadmpv-36d0d92f217f8aaf2536a882606ad277b7ce512a.tar.bz2
mpv-36d0d92f217f8aaf2536a882606ad277b7ce512a.tar.xz
Only set VO_EVENT_RESIZE if size actually changed, not if e.g. the window was
only moved to the foreground. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28541 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index ea57f06373..aeb8a6069f 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -844,8 +844,12 @@ int vo_x11_check_events(Display * mydisplay)
// if (vo_fs && Event.xconfigure.width != vo_screenwidth && Event.xconfigure.height != vo_screenheight) break;
if (vo_window == None)
break;
- vo_x11_update_geometry();
- ret |= VO_EVENT_RESIZE;
+ {
+ int old_w = vo_dwidth, old_h = vo_dheight;
+ vo_x11_update_geometry();
+ if (vo_dwidth != old_w || vo_dheight != old_h)
+ ret |= VO_EVENT_RESIZE;
+ }
break;
case KeyPress:
{