| 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);
|
|
|