diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-24 20:01:20 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-24 20:01:20 +0000 |
commit | 96de7910f611a4640bc9ade33abf981b6661680d (patch) | |
tree | adb3f340851f595b20d27d552383b833900f5144 /base/message_pump_x.h | |
parent | 0173b96374dacfa596c6700b4c1b2ab6abc35f90 (diff) | |
download | chromium_src-96de7910f611a4640bc9ade33abf981b6661680d.zip chromium_src-96de7910f611a4640bc9ade33abf981b6661680d.tar.gz chromium_src-96de7910f611a4640bc9ade33abf981b6661680d.tar.bz2 |
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
Diffstat (limited to 'base/message_pump_x.h')
-rw-r--r-- | base/message_pump_x.h | 4 |
1 files changed, 4 insertions, 0 deletions
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_; |