Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
28505:f3fa6fe243e6 | 28506:fe72d4f7ac25 |
---|---|
842 case ConfigureNotify: | 842 case ConfigureNotify: |
843 // if (!vo_fs && (Event.xconfigure.width == vo_screenwidth || Event.xconfigure.height == vo_screenheight)) break; | 843 // if (!vo_fs && (Event.xconfigure.width == vo_screenwidth || Event.xconfigure.height == vo_screenheight)) break; |
844 // if (vo_fs && Event.xconfigure.width != vo_screenwidth && Event.xconfigure.height != vo_screenheight) break; | 844 // if (vo_fs && Event.xconfigure.width != vo_screenwidth && Event.xconfigure.height != vo_screenheight) break; |
845 if (vo_window == None) | 845 if (vo_window == None) |
846 break; | 846 break; |
847 vo_x11_update_geometry(); | 847 { |
848 ret |= VO_EVENT_RESIZE; | 848 int old_w = vo_dwidth, old_h = vo_dheight; |
849 vo_x11_update_geometry(); | |
850 if (vo_dwidth != old_w || vo_dheight != old_h) | |
851 ret |= VO_EVENT_RESIZE; | |
852 } | |
849 break; | 853 break; |
850 case KeyPress: | 854 case KeyPress: |
851 { | 855 { |
852 int key; | 856 int key; |
853 | 857 |