GNOME Bugzilla – Bug 652049
Fullscreen doesn't always hide taskbar (Windows)
Last modified: 2018-02-10 03:19:56 UTC
gtk_window_fullscreen () should hide the taskbar, but it's not reliably working (tested on Windows XP SP3 and Windows 2008 R2, with gtk2 and gtk3) See attached screencast running the following simple test: /* i686-w64-mingw32-gcc test.c `pkg-config --cflags --libs gtk+-2.0` -o a.exe */ #include <gtk/gtk.h> int i = 0; gboolean foo (gpointer data) { i += 1; if (i % 2) { gtk_window_fullscreen (GTK_WINDOW (data)); } else { gtk_window_unfullscreen (GTK_WINDOW (data)); } return TRUE; } int main (int argc, char **argv) { gtk_init (&argc, &argv); GtkWidget *mainwin = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show_all (mainwin); g_timeout_add_seconds (1, foo, mainwin); gtk_main (); return 0; } (we can find traces of people working around the problem for Xournal here: http://dirkgerrits.com/2009/10/28/xournal-on-windows/)
Created attachment 189400 [details] screencast
Oops, I realize that there is a delay before the taskbar is hidden. Still, in vinagre, when going fullscreen, it doesn't always hide the taskbar for some reason. We could change this bug to "hide the taskbar immediately"
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.