Index: video-xv.c =================================================================== RCS file: /cvsroot/softdevice/softdevice/video-xv.c,v retrieving revision 1.63 diff -U3 -r1.63 video-xv.c --- video-xv.c 29 Sep 2006 19:17:18 -0000 1.63 +++ video-xv.c 3 Nov 2006 18:29:54 -0000 @@ -862,6 +862,23 @@ } } #endif + + /* ------------------------------------------------------------------------- + * limit widht and height to screen dimensions + */ + { + int screen_width, screen_height; + + screen_width = DisplayWidth(dpy, scn_id); + screen_height = DisplayHeight(dpy, scn_id); + + if (height > screen_height) + old_dheight = lheight = dheight = height = screen_height; + + if (width > screen_width) + old_dwidth = lwidth = dwidth = width = screen_width; + } + /* ------------------------------------------------------------------------- * default settings which allow arbitraray resizing of the window */