Skip to content

Commit ec2d76a

Browse files
author
Wolfgang Ulbrich
committed
scalefilter: Fix deprecated XKeycodeToKeysym warning
1 parent cc7b728 commit ec2d76a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scalefilter/scalefilter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#include <X11/Xlib.h>
3333
#include <X11/keysymdef.h>
34+
#include <X11/XKBlib.h>
3435

3536
#include <compiz-core.h>
3637
#include <compiz-scale.h>
@@ -413,7 +414,7 @@ scalefilterHandleSpecialKeyPress (CompScreen *s,
413414
FILTER_SCREEN (s);
414415

415416
info = fs->filterInfo;
416-
ks = XKeycodeToKeysym (s->display->display, event->keycode, 0);
417+
ks = XkbKeycodeToKeysym (s->display->display, event->keycode, 1, 0);
417418

418419
if (ks == XK_Escape)
419420
{

0 commit comments

Comments
 (0)