[MPlayer-cvslog] r28541 - trunk/libvo/x11_common.c

reimar subversion at mplayerhq.hu
Thu Feb 12 13:43:14 CET 2009


Author: reimar
Date: Thu Feb 12 13:43:14 2009
New Revision: 28541

Log:
Only set VO_EVENT_RESIZE if size actually changed, not if e.g. the window was
only moved to the foreground.

Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Thu Feb 12 13:32:16 2009	(r28540)
+++ trunk/libvo/x11_common.c	Thu Feb 12 13:43:14 2009	(r28541)
@@ -844,8 +844,12 @@ int vo_x11_check_events(Display * mydisp
 //         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:
                 {



More information about the MPlayer-cvslog mailing list