Hide taskbar when a window is maximized

My Gtk Application has important information on the titlebar. It is a customized GtkHeaderBar, so I want it to be shown during full screen. I toggle full screen with gtk_window_unfullscreen() and gtk_window_fullscreen(). I’ve seen this happening as a window manager bug before, now I want it on purpose.

Either the application should cover the taskbar when maximized or the headerbar forced to be shown on full screen. Both would have the same visual effect.

How can I do that within GTK+ or in worst case, winapi?

gtk_window_set_keep_above() practically does that.
Using gtk_window_resize() on a gdk_monitor_get_workarea() does the job. It probably calls this function internally when the vertical position is requested to be higher.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.