add: wmspec_change_state (set, window, gdk_atom_intern ("_NET_WM_STATE_MAXIMIZED_HORZ", FALSE), GDK_NONE); wmspec_change_state (set, window, gdk_atom_intern ("_NET_WM_MAXIMIZED_VERT", FALSE), GDK_NONE); gdk_window_maximize (window);
context: gdk_window_set_fullscreen (GdkWindow *window, gboolean set){	gdk_window_set_decorations (window, set ? 0 : 1);	if (set == TRUE)		old_wmspec_set_fullscreen (window);	/* Set full-screen hint */	wmspec_change_state (set, window,			gdk_atom_intern			("_NET_WM_STATE_FULLSCREEN", FALSE),			GDK_NONE);}