From e5380f532572a127962f40d242650d136a51d896 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Thu, 26 Feb 2009 02:20:08 +0000 Subject: 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 --- chrome/common/x11_util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/common/x11_util.h') 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 -- cgit v1.1