Commit 42841d42 authored by Sébastien Blin's avatar Sébastien Blin

mainwindow: don't save fullscreen state between reboot

Change-Id: I80aefe476240e3927251c66c353d7faf9e8df514
parent ed9da29e
......@@ -818,7 +818,6 @@ on_window_state_event(GtkWidget *widget, GdkEventWindowState *event)
auto *priv = MAIN_WINDOW_GET_PRIVATE(MAIN_WINDOW(widget));
g_settings_set_boolean(priv->window_settings, "window-maximized", ((event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) != 0));
g_settings_set_boolean(priv->window_settings, "window-fullscreen", ((event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) != 0));
return GDK_EVENT_PROPAGATE;
}
......@@ -1242,10 +1241,6 @@ CppImpl::init()
if (g_settings_get_boolean(widgets->window_settings, "window-maximized"))
gtk_window_maximize(GTK_WINDOW(self));
widgets->is_fullscreen_main_win = g_settings_get_boolean(widgets->window_settings, "window-fullscreen");
if (widgets->is_fullscreen_main_win)
gtk_window_fullscreen(GTK_WINDOW(self));
update_data_transfer(lrc_->getDataTransferModel(), widgets->window_settings);
/* search-entry-places-call setting */
......
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