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

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: move outside of TOOLKIT_GTK 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') | no next file with comments »
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..99b98f94ed5bf4e5f7001c15d69bff719dc89a06 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(
+ ui::GetX11WindowFromGtkWidget(GTK_WIDGET(window_)));
}
gboolean BrowserWindowGtk::OnCustomFrameExpose(GtkWidget* widget,
« no previous file with comments | « no previous file | ui/base/x/x11_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698