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

Re: fullscreen apps (in X) - windowmanager support?



on Wed, Nov 15, 2000 at 01:15:51PM -0500, Noah L. Meyerhans (frodo@morgul.net) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, Nov 14, 2000 at 10:22:23AM -0500, Andrew Sullivan wrote:
> > On Tue, Nov 14, 2000 at 04:35:12PM +0200, Hugo van der Merwe wrote:
> > 
> > > The best way (as far as I know the only way) to get an app to full
> > > screen in X, is to drop the resolution (assuming you have many modelines
> > > defined) to the resolution of the app, or the smalelst resolution a
> > > little larger, then to "position" the display correctly. The big problem
> > > is accidently moving the mouse, and thereby shifting the screen.
> > 
> > No.  Most window managers have a function, "Maximize", built into
> > them.  This will usually give you the window the full size of the
> > screen.  (You still have the mouse-off-the-edge problem: see more
> > below).  If Window Maker doesn't do that, AfterStep (which can be
> > visually similar and which supports most WM applets) certainly does,
> > and by default.  The AS deb in woody is pretty good (there are still
> > a few issues with menus that I haven't sorted out, but that could be
> > my fault, and I haven't spent any time on it), and it seems to work
> > just fine on potato.
> 
> I don't think that's quite what Hugo was looking for.  I've run in to
> his problem myself, particularly with the game Maelstrom.  Maelstrom
> runs at 640x480.  Maximizing the window doesn't change that, you merely
> get a full-screen black window with a little 640x480 section in the
> center in which the game is displayed.  The only way to have the actual
> game take up the full screen is to change the display resolution to
> 640x480 and move the mouse around until the Maelstrom window is the only
> portion of the larger "virtual desktop" that can be seen.
> 
> I don't think there's a better way to do this, as Hugo suspected.  If
> you could easily move the mouse using script commands, you could
> probably write something to parse the output of xwininfo and move the
> mouse to a corner of a given window.  But this doesn't help the problem
> of accidentally moving the mouse outside the window, causing the window
> to go flying off your screen as you scroll around your virtual desktop.

If you're running just the game, you could give it its own X session,
with no windowmanager.  <ctrl><alt><backspace> will shut it down:

    $ X <mygame> -- :<display> 

...having first configured your resolution appropriately.

-- 
Karsten M. Self <kmself@ix.netcom.com>     http://www.netcom.com/~kmself
 Evangelist, Zelerate, Inc.                      http://www.zelerate.org
  What part of "Gestalt" don't you understand?      There is no K5 cabal
   http://gestalt-system.sourceforge.net/        http://www.kuro5hin.org

Attachment: pgp2RfffaEhxS.pgp
Description: PGP signature


Reply to: