summaryrefslogtreecommitdiff
path: root/src/option.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.cpp')
-rw-r--r--src/option.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option.cpp b/src/option.cpp
index 1c704fc..c976b70 100644
--- a/src/option.cpp
+++ b/src/option.cpp
@@ -605,7 +605,7 @@ keyBindingToString (CompDisplay *d,
KeySym keysym;
char *keyname;
- keysym = XKeycodeToKeysym (d->display, key->keycode, 0);
+ keysym = XKeycodeToKeysym (d->dpy (), key->keycode, 0);
keyname = XKeysymToString (keysym);
if (keyname)
@@ -743,7 +743,7 @@ stringToKeyBinding (CompDisplay *d,
{
KeyCode keycode;
- keycode = XKeysymToKeycode (d->display, keysym);
+ keycode = XKeysymToKeycode (d->dpy (), keysym);
if (keycode)
{
key->keycode = keycode;