diff libvo/x11_common.c @ 28506:fe72d4f7ac25

Only set VO_EVENT_RESIZE if size actually changed, not if e.g. the window was only moved to the foreground.
author reimar
date Thu, 12 Feb 2009 12:43:14 +0000
parents 7681eab10aea
children ad0fcde5f320
line wrap: on
line diff
--- a/libvo/x11_common.c	Thu Feb 12 12:32:16 2009 +0000
+++ b/libvo/x11_common.c	Thu Feb 12 12:43:14 2009 +0000
@@ -844,8 +844,12 @@
 //         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:
                 {