Skip to content

Commit

Permalink
scalefilter: Fix deprecated XKeycodeToKeysym warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Ulbrich committed Dec 19, 2015
1 parent cc7b728 commit ec2d76a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scalefilter/scalefilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include <X11/Xlib.h>
#include <X11/keysymdef.h>
#include <X11/XKBlib.h>

#include <compiz-core.h>
#include <compiz-scale.h>
Expand Down Expand Up @@ -413,7 +414,7 @@ scalefilterHandleSpecialKeyPress (CompScreen *s,
FILTER_SCREEN (s);

info = fs->filterInfo;
ks = XKeycodeToKeysym (s->display->display, event->keycode, 0);
ks = XkbKeycodeToKeysym (s->display->display, event->keycode, 1, 0);

if (ks == XK_Escape)
{
Expand Down

0 comments on commit ec2d76a

Please sign in to comment.