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

Unified Diff: ui/base/x/x11_util.cc

Issue 8595003: Have panels respond to changes in work area on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
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.
« ui/base/x/work_area_watcher_x.h ('K') | « ui/base/x/x11_util.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698