Index: chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc |
diff --git a/chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc b/chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc |
index 618d7502011336659feee0e5a794d813ab60fd3e..948314e12901a4448f5766982ae958418b0333f0 100644 |
--- a/chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc |
+++ b/chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc |
@@ -20,6 +20,7 @@ |
#include "ui/base/ime/composition_text_util_pango.h" |
#include "ui/base/ime/text_input_client.h" |
#include "ui/events/event.h" |
+#include "ui/gfx/x/x11_types.h" |
namespace { |
@@ -103,8 +104,7 @@ X11InputMethodContextImplGtk2::X11InputMethodContextImplGtk2( |
CHECK(delegate_); |
{ |
- XModifierKeymap* keymap = XGetModifierMapping( |
- base::MessagePumpForUI::GetDefaultXDisplay()); |
+ XModifierKeymap* keymap = XGetModifierMapping(gfx::GetXDisplay()); |
for (int i = 0; i < 8 * keymap->max_keypermod; ++i) { |
if (keymap->modifiermap[i]) |
modifier_keycodes_.insert(keymap->modifiermap[i]); |