Commit e47689d9 authored by Matthias Clasen's avatar Matthias Clasen

csd: Implement hide-titlebar-when-maximized

parent acf56b6c
......@@ -4998,13 +4998,19 @@ static void
update_window_buttons (GtkWindow *window)
{
GtkWindowPrivate *priv = window->priv;
GdkWindow *win;
gboolean maximized = FALSE;
if (priv->custom_title)
return;
win = gtk_widget_get_window (GTK_WIDGET (window));
if (win != NULL)
maximized = gdk_window_get_state (win) & GDK_WINDOW_STATE_MAXIMIZED;
if (priv->decorated &&
priv->client_decorated &&
!priv->fullscreen &&
!(maximized && priv->hide_titlebar_when_maximized) &&
priv->title_box != NULL)
{
gchar *layout_desc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment