Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3984)

Unified Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 10388217: Users stuck in fullscreen mode when running gnome-shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/x/x11_util.h » ('j') | ui/base/x/x11_util.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 85ba20ee72c0ceb139661f9b3350d5c9973b5b79..86761c16f732968bd1ed46bbc392a3fda41eb501 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -428,6 +428,11 @@ void BrowserWindowGtk::Init() {
// Set the initial background color of widgets.
SetBackgroundColor();
HideUnsupportedWindowFeatures();
+
+ // Setting _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED tells gnome-shell to not force
+ // fullscreen on the window when it matches the desktop size.
+ ui::SetHideTitlebarWhenMaximizedProperty(gtk_widget_get_window(
Daniel Erat 2012/05/21 21:37:10 nit: mind moving "gtk_window_get_window(" down to
tony 2012/05/21 21:47:31 Done.
+ GTK_WIDGET(window_)));
}
gboolean BrowserWindowGtk::OnCustomFrameExpose(GtkWidget* widget,
« no previous file with comments | « no previous file | ui/base/x/x11_util.h » ('j') | ui/base/x/x11_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698