prefs: add get_/set_ignore_request_hide_titlebar ()

Enables the possibility to ignore GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED
to prevent hiding the titlebar of applications even if they
requested so.

https://bugzilla.gnome.org/show_bug.cgi?id=678947
This commit is contained in:
Rico Tzschichholz
2012-07-01 19:25:08 +02:00
parent f65b7c59d3
commit 78c966321a
3 changed files with 17 additions and 1 deletions

View File

@@ -1600,7 +1600,7 @@ reload_gtk_hide_titlebar_when_maximized (MetaWindow *window,
gboolean requested_value = FALSE;
gboolean current_value = window->hide_titlebar_when_maximized;
if (value->type != META_PROP_VALUE_INVALID)
if (!meta_prefs_get_ignore_request_hide_titlebar () && value->type != META_PROP_VALUE_INVALID)
{
requested_value = ((int) value->v.cardinal == 1);
meta_verbose ("Request to hide titlebar for window %s.\n", window->desc);