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

Unified Diff: remoting/host/local_input_monitor_thread_linux.cc

Issue 9817020: Linux: Fix the build for Ubuntu Precise. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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: remoting/host/local_input_monitor_thread_linux.cc
===================================================================
--- remoting/host/local_input_monitor_thread_linux.cc (revision 128057)
+++ remoting/host/local_input_monitor_thread_linux.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -15,6 +15,7 @@
// These includes need to be later than dictated by the style guide due to
// Xlib header pollution, specifically the min, max, and Status macros.
+#include <X11/XKBlib.h>
#include <X11/Xlibint.h>
#include <X11/extensions/record.h>
@@ -167,7 +168,7 @@
}
void LocalInputMonitorThread::LocalKeyPressed(int key_code, bool down) {
- int key_sym = XKeycodeToKeysym(display_, key_code, 0);
+ KeySym key_sym = XkbKeycodeToKeysym(display_, key_code, 0, 0);
Lei Zhang 2012/03/21 23:16:43 Same as https://chromiumcodereview.appspot.com/963
if (key_sym == XK_Control_L || key_sym == XK_Control_R) {
ctrl_pressed_ = down;
} else if (key_sym == XK_Alt_L || key_sym == XK_Alt_R) {

Powered by Google App Engine
This is Rietveld 408576698