From 2e7f65885b2415bae02ba9e004536b22b88920cb Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 1 May 2012 20:51:37 -0400 Subject: [PATCH] Apparently, XKeycodeToKeysym() is deprecated. Since clang++ was giving warnings about this I switched to the replacement function XkbKeycodeToKeysym(). --- dlib/gui_core/gui_core_kernel_2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlib/gui_core/gui_core_kernel_2.cpp b/dlib/gui_core/gui_core_kernel_2.cpp index c098d38dc..0b63ef53e 100644 --- a/dlib/gui_core/gui_core_kernel_2.cpp +++ b/dlib/gui_core/gui_core_kernel_2.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include "../assert.h" @@ -1263,7 +1264,7 @@ namespace dlib { if ( codes[n] == 0 ) continue; - switch(XKeycodeToKeysym( disp, codes[n], 0 )) + switch(XkbKeycodeToKeysym( disp, codes[n], 0, 0 )) { case XK_Alt_L: alt_mask = index_to_modmask(n / map->max_keypermod);