1
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 03:06:28 +01:00

Only set VO_EVENT_RESIZE if size actually changed, not if e.g. the window was

only moved to the foreground.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28541 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-02-12 12:43:14 +00:00
parent 62ca18ed47
commit 36d0d92f21

View File

@ -844,8 +844,12 @@ int vo_x11_check_events(Display * mydisplay)
// 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:
{