summaryrefslogtreecommitdiffstats
path: root/chrome/common/x11_util.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 02:20:08 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 02:20:08 +0000
commite5380f532572a127962f40d242650d136a51d896 (patch)
tree58ffaa8f5b3c9893ed00bc508f0840fd53f3121e /chrome/common/x11_util.h
parent4edb0b93463b7cd8e52bf6dff7fc7b460afe887b (diff)
downloadchromium_src-e5380f532572a127962f40d242650d136a51d896.zip
chromium_src-e5380f532572a127962f40d242650d136a51d896.tar.gz
chromium_src-e5380f532572a127962f40d242650d136a51d896.tar.bz2
Linux: fix GDK error when switching tab contents
When we remove a drawing area from a container, GTK destroys the X window. However, the BackingStore remembers the old X window id and emits X requests using the wrong id. This change makes the window id an argument to ShowRect and makes the pixmaps from the root window instead. Review: http://codereview.chromium.org/27169 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/x11_util.h')
-rw-r--r--chrome/common/x11_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/x11_util.h b/chrome/common/x11_util.h
index 130ecc7..6e5072b 100644
--- a/chrome/common/x11_util.h
+++ b/chrome/common/x11_util.h
@@ -30,6 +30,8 @@ namespace x11_util {
// These functions do not cache their results
+ // Get the X window id for the default root window
+ XID GetX11RootWindow();
// Get the X window id for the given GTK widget.
XID GetX11WindowFromGtkWidget(GtkWidget*);
// Get a Visual from the given widget. Since we don't include the Xlib