From 96de7910f611a4640bc9ade33abf981b6661680d Mon Sep 17 00:00:00 2001 From: "sadrul@chromium.org" Date: Wed, 24 Aug 2011 20:01:20 +0000 Subject: mpx: Use [mostly proper] glib event source for X events when GTK events are not used. The non-gtk aura WM can be run with this message-pump without taking up 100% CPU. BUG=none TEST=none Review URL: http://codereview.chromium.org/7704003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98099 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_pump_x.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/message_pump_x.h') diff --git a/base/message_pump_x.h b/base/message_pump_x.h index a6b68c6..c13f323 100644 --- a/base/message_pump_x.h +++ b/base/message_pump_x.h @@ -108,6 +108,10 @@ class BASE_EXPORT MessagePumpX : public MessagePumpGlib { // processed so that GDK doesn't get to them. void InitializeEventsToCapture(void); + // The event source for X events (used only when GTK event processing is + // disabled). + GSource* x_source_; + // The event source for GDK events. GSource* gdksource_; -- cgit v1.1