mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-26 08:22:37 +01:00
XKeycodeToKeysym deprecated function
The function XKeycodeToKeysym is deprecated and should be replaced by XkbKeycodeToKeysym.
This commit is contained in:
committed by
Carlos R. Mafra
parent
da4e4128b3
commit
ebbc5c48ba
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/XKBlib.h>
|
||||
|
||||
#include "WindowMaker.h"
|
||||
#include "actions.h"
|
||||
@@ -246,7 +247,7 @@ static void updateWorkspaceMenu(WMenu * menu)
|
||||
static char *getShortcutString(WShortKey key)
|
||||
{
|
||||
char *tmp = NULL;
|
||||
char *k = XKeysymToString(XKeycodeToKeysym(dpy, key.keycode, 0));
|
||||
char *k = XKeysymToString(XkbKeycodeToKeysym(dpy, key.keycode, 0, 0));
|
||||
if (!k) return NULL;
|
||||
|
||||
char **m = wPreferences.modifier_labels;
|
||||
|
||||
Reference in New Issue
Block a user