Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: trunk/src/chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc

Issue 238093002: Revert 263726 "x11: Remove X11 message-pump." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc
===================================================================
--- trunk/src/chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc (revision 263732)
+++ trunk/src/chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc (working copy)
@@ -20,7 +20,6 @@
#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 {
@@ -104,7 +103,8 @@
CHECK(delegate_);
{
- XModifierKeymap* keymap = XGetModifierMapping(gfx::GetXDisplay());
+ XModifierKeymap* keymap = XGetModifierMapping(
+ base::MessagePumpForUI::GetDefaultXDisplay());
for (int i = 0; i < 8 * keymap->max_keypermod; ++i) {
if (keymap->modifiermap[i])
modifier_keycodes_.insert(keymap->modifiermap[i]);
« no previous file with comments | « trunk/src/chrome/browser/ui/libgtk2ui/gtk2_event_loop.cc ('k') | trunk/src/content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698