metacity and xawtv feuding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Looks like no one is willing to deal with xawtv and metacity not playing nicely
wrt fullscreen mode. 

Metacity insists on putting a title bar in the way. 

xawtv attempts to address these issues with the wm-off-by option, which works
by shifting the window on the desktop until the title bar isn't showing. But
the window is placed at 0,0, and moving it up to get rid of the title bar would
put the title bar off the desktop. Metacity refuses to do this.

Here's a workaround. If a wm-off-by setting is negative, it moves the viewport
forward instead of the window backward. Thus the window is never moved off the
edge of the desktop.

b.c.
--- x11/xt.c.orig	2003-02-07 01:03:03.000000000 -0800
+++ x11/xt.c	2003-02-07 01:06:38.000000000 -0800
@@ -961,7 +961,9 @@
 		warp_pointer = 1;
 		XWarpPointer(dpy, None, RootWindowOfScreen(XtScreen(tv)),
 			     0, 0, 0, 0, vp_width/2, vp_height/2);
-		XF86VidModeSetViewPort(dpy,XDefaultScreen(dpy),0,0);
+		XF86VidModeSetViewPort(dpy,XDefaultScreen(dpy),
+                    fs_xoff<0?-fs_xoff:0,
+                    fs_yoff<0?-fs_yoff:0);
 	    }
 	}
 #endif
@@ -999,8 +1001,8 @@
 		      XtNheightInc,  1,
 		      NULL);
 	XtVaSetValues(app_shell,
-		      XtNx,          (vp_x & 0xfffc) + fs_xoff,
-		      XtNy,          vp_y            + fs_yoff,
+		      XtNx,          (vp_x & 0xfffc) + (fs_xoff<0?0:fs_xoff),
+		      XtNy,          vp_y            + (fs_yoff<0?0:fs_yoff),
 		      XtNwidth,      vp_width,
 		      XtNheight,     vp_height,
 		      NULL);

[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux