changeset 33568:276ab400eb1c

Generate VO_EVENT_MOVE also with -wid.
author reimar
date Sun, 19 Jun 2011 12:45:28 +0000
parents 251a48bca536
children 8e70a224c411
files libvo/w32_common.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/w32_common.c	Sun Jun 19 12:36:12 2011 +0000
+++ b/libvo/w32_common.c	Sun Jun 19 12:45:28 2011 +0000
@@ -203,11 +203,18 @@
     if (WinID >= 0) {
         BOOL res;
         RECT r;
+        POINT p;
         res = GetClientRect(vo_window, &r);
         if (res && (r.right != vo_dwidth || r.bottom != vo_dheight)) {
             vo_dwidth = r.right; vo_dheight = r.bottom;
             event_flags |= VO_EVENT_RESIZE;
         }
+        p.x = 0; p.y = 0;
+        ClientToScreen(vo_window, &p);
+        if (p.x != vo_dx || p.y != vo_dy) {
+            vo_dx = p.x; vo_dy = p.y;
+            event_flags |= VO_EVENT_MOVE;
+        }
         res = GetClientRect(WinID, &r);
         if (res && (r.right != vo_dwidth || r.bottom != vo_dheight))
             MoveWindow(vo_window, 0, 0, r.right, r.bottom, FALSE);