Bug#504366: Refuses to resize window to 2:1

Matt Kraai kraai at ftbfs.org
Mon Nov 3 03:06:24 UTC 2008


Package: totem
Version: 2.22.2-5
Severity: minor
Tags: patch

Totem refuses to resize a window to an aspect ratio if the resulting
width of the video is more than 128 pixels less than the width of the
screen.  On my system, the decorations on each side of the video are 5
pixels wide, so some videos cannot be resized even though there is
plenty of room to do so.

The attached patch changes the fudge-factor to 10, though it would
probably be better to determine the actual width (and height) of the
decorations and use those values instead.

-- 
Matt                                                 http://ftbfs.org/
-------------- next part --------------
diff -ru totem-2.22.2~/src/backend/video-utils.c totem-2.22.2/src/backend/video-utils.c
--- totem-2.22.2~/src/backend/video-utils.c	2008-11-02 18:23:54.000000000 -0800
+++ totem-2.22.2/src/backend/video-utils.c	2008-11-02 18:43:28.000000000 -0800
@@ -341,7 +341,7 @@
 			(screen, video_window),
 			&fullscreen_rect);
 
-	if (new_w > (fullscreen_rect.width - 128) ||
+	if (new_w > (fullscreen_rect.width - 10) ||
 			new_h > (fullscreen_rect.height - 128))
 	{
 		return FALSE;


More information about the pkg-gnome-maintainers mailing list