diff options
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 8 |
1 files changed, 6 insertions, 2 deletions
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) |