summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/video_out.h1
-rw-r--r--libvo/x11_common.c8
2 files changed, 7 insertions, 2 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 1bdf74da96..e2ecfd512d 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -36,6 +36,7 @@
#define VO_EVENT_RESIZE 2
#define VO_EVENT_KEYPRESS 4
#define VO_EVENT_REINIT 8
+#define VO_EVENT_MOVE 16
/* Obsolete: VOCTRL_QUERY_VAA 1 */
/* does the device support the required format */
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 236f65b4c5..ffe5e8120b 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -766,10 +766,14 @@ void vo_x11_uninit(struct vo *vo)
static int check_resize(struct vo *vo)
{
int old_w = vo->dwidth, old_h = vo->dheight;
+ int old_x = vo->dx, old_y = vo->dy;
+ int rc = 0;
vo_x11_update_geometry(vo);
if (vo->dwidth != old_w || vo->dheight != old_h)
- return VO_EVENT_RESIZE;
- return 0;
+ rc |= VO_EVENT_RESIZE;
+ if (vo->dx != old_x || vo->dy != old_y)
+ rc |= VO_EVENT_MOVE;
+ return rc;
}
int vo_x11_check_events(struct vo *vo)