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

Unified Diff: ui/base/x/x11_util.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 | « ui/base/x/x11_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.cc
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index a7b1bc3ad03f90df43e283ef900142c6d04f0512..06c97c046b261606ef4b321ebb176138650664bb 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -469,6 +469,18 @@ void* GetVisualFromGtkWidget(GtkWidget* widget) {
}
#endif // defined(TOOLKIT_GTK)
+void SetHideTitlebarWhenMaximizedProperty(XID window) {
+ uint32 hide = 1;
+ XChangeProperty(GetXDisplay(),
+ window,
+ GetAtom("_GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED"),
+ XA_CARDINAL,
+ 32, // size in bits
+ PropModeReplace,
+ reinterpret_cast<unsigned char*>(&hide),
+ 1);
+}
+
int BitsPerPixelForPixmapDepth(Display* dpy, int depth) {
int count;
XPixmapFormatValues* formats = XListPixmapFormats(dpy, &count);
« no previous file with comments | « ui/base/x/x11_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698