Replace deprecated X functions XKeycodeToKeysym to XkbKeycodeToKeysym using XKBlib.h
This commit is contained in:
parent
59af606147
commit
018176c4ef
@ -304,7 +304,7 @@ client_swap(struct client *c, enum position p)
|
|||||||
if(ev.type == KeyPress)
|
if(ev.type == KeyPress)
|
||||||
{
|
{
|
||||||
XKeyPressedEvent *ke = &ev.xkey;
|
XKeyPressedEvent *ke = &ev.xkey;
|
||||||
keysym = XKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0);
|
keysym = XkbKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0, 0);
|
||||||
|
|
||||||
_REV_SBORDER();
|
_REV_SBORDER();
|
||||||
|
|
||||||
@ -1368,7 +1368,7 @@ client_fac_resize(struct client *c, enum position p, int fac)
|
|||||||
if(ev.type == KeyPress)
|
if(ev.type == KeyPress)
|
||||||
{
|
{
|
||||||
XKeyPressedEvent *ke = &ev.xkey;
|
XKeyPressedEvent *ke = &ev.xkey;
|
||||||
keysym = XKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0);
|
keysym = XkbKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0, 0);
|
||||||
|
|
||||||
_REV_BORDER();
|
_REV_BORDER();
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
#ifndef CLIENT_H
|
#ifndef CLIENT_H
|
||||||
#define CLIENT_H
|
#define CLIENT_H
|
||||||
|
|
||||||
|
#include <X11/XKBlib.h>
|
||||||
|
|
||||||
#include "wmfs.h"
|
#include "wmfs.h"
|
||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
#include "ewmh.h"
|
#include "ewmh.h"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user