Re: Going fullscreen and back

2008-04-27 Thread Carlos Pereira
Jim George, Kevin DeKorte wrote: > Why not use gtk_window_fullscreen? I've only tried it on a Gnome desktop, it > works well. > Why don't you just use > gtk_window_fullscreen / gtk_window_unfullscreen? > Jim, Kevin, Thanks! It works fantastically well, I just tried it on GNOME, XFCE, KDE, En

Re: Going fullscreen and back

2008-04-27 Thread Jim George
0, 0, gdk_screen_width (), gdk_screen_height ()); > > poor Gnome WM gets confused, indeed goes fullscreen, > but does not come back... :-( > > What is the best way to handle this? > going fullscreen is a very useful feature > in many scientific/engineering apps. > >

Going fullscreen and back

2008-04-27 Thread Carlos Pereira
going fullscreen and back *** #include #include int x, y, w, h; int press_event (GtkWidget *widget, GdkEventKey *event, GtkWidget *window) { static int fullscreen = FALSE; switch (event->keyval) { case GDK_Escape: if (fullscreen == FALSE) { gtk_window_get_position (GTK_WINDOW (wi