[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Windowbar/border
- From: Havoc Pennington <hp redhat com>
- To: gtk-app-devel-list redhat com
- Subject: Re: Windowbar/border
- Date: 28 Feb 2000 00:53:36 -0500
> > I was wondering how you can make an app with NO windowbar and no border,
> > just printing graphics to the entire screen, lise many common win32
> > games (starcraft, diablo, quake2, etc). This is somewhat important to me
There are a number of ways to do this; the simplest, which leaves the
app window-managed, is:
gdk_window_set_decorations(widget->window, 0);
gdk_window_set_functions(widget->window, 0);
gtk_widget_set_usize(widget, gdk_screen_width(), gdk_screen_height());
gtk_widget_set_uposition(widget, 0, 0);
Or something like that. However users will be able to end up with your
game window underneath their other windows, using key shortcuts and
such.
XFree86 has a special fullscreen mode that games like Unreal
Tournament and Quake 3 use. I'm not sure if you want to go there or
not. I'm also not sure how to turn it on, though an ltrace of those
games may well tell you.
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]