[Mplayerplug-in-devel] Fullscreen needed
Brought to you by:
kdekorte
From: Fabian F. <Fab...@gm...> - 2004-03-25 21:02:41
|
Hi, I'm not that good in the project again to understand the GTK(+) Code fully, yet. But I want to contribute a X11-function with which the window can be reparented to fullscreen: The only thing you need to do is to catch the 'f'-key and do the following: if ( isFullScreen ) XReparentWindow(mDisplay, win->WindowID, win->Parent, 0, 0); else XReparentWindow(mDisplay, win->WindowID, mRootWin, 0, 0); If you have any questions, because its code from a patch never accepted (with good reason) mplayer see the man page: XReparentWindow(display, w, parent, x, y) Display *display; Window w; Window parent; int x, y; ARGUMENTS display Specifies the connection to the X server. parent Specifies the parent window. w Specifies the window. x y Specify the x and y coordinatesof the position in the new parent window. Sorry that I can't contribute a patch, but hope this information helps and that in 2.51 we have fullscreen support. (with 'f'-key) or even with a button. cu Fabian |