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

Unified Diff: media/tools/player_x11/player_x11.cc

Issue 9632006: Replace use of XKeycodeToKeysym() with XkbKeycodeToKeysym() in player_x11. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/player_x11/player_x11.cc
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc
index 8d9b4e006460a6ae6e99f711238a3c98df228348..e656b8e2ef338dc1be1c78d97d67e75415e6cbc8 100644
--- a/media/tools/player_x11/player_x11.cc
+++ b/media/tools/player_x11/player_x11.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <X11/keysym.h>
+#include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include <signal.h>
@@ -199,7 +199,7 @@ void PeriodicalUpdate(
break;
case KeyPress:
{
- KeySym key = XKeycodeToKeysym(g_display, e.xkey.keycode, 0);
+ KeySym key = XkbKeycodeToKeysym(g_display, e.xkey.keycode, 0, 0);
if (key == XK_Escape) {
g_running = false;
// Quit message_loop only when pipeline is fully stopped.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698