Index: ui/base/x/x11_util.cc |
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc |
index aa11de8a78e7a5cba96ea19f6ca46780dd5bf640..1ce2445c75b1976d8dd9b53a17d9b8da133da42b 100644 |
--- a/ui/base/x/x11_util.cc |
+++ b/ui/base/x/x11_util.cc |
@@ -809,6 +809,12 @@ bool IsX11WindowFullScreen(XID window) { |
#endif |
} |
+Atom GetAtomForScreenProperty(const char* atom_name) { |
+ GdkAtom gdk_atom = gdk_atom_intern_static_string(atom_name); |
+ return gdk_x11_atom_to_xatom_for_display( |
sadrul
2011/11/18 17:56:42
Please use non-gtk functions (e.g. XInternAtom)
prasadt
2011/11/18 22:31:42
Done.
As it turns, there is an existing helper fu
|
+ gdk_screen_get_display(gdk_screen_get_default()), gdk_atom); |
+} |
+ |
// ---------------------------------------------------------------------------- |
// These functions are declared in x11_util_internal.h because they require |
// XLib.h to be included, and it conflicts with many other headers. |