diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-07-09 13:34:33 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-07-09 13:34:33 +1200 |
commit | f413a67bb144cbd5ccb80c32f1ae31ca8ce9360e (patch) | |
tree | b5505752e2f20eeb4f0afccda94c55bb29b46919 /session/direct.c | |
parent | 2c27ed13934df0292df8eefea3a4cd1638785f0e (diff) |
Removed KDSKBMUTE. This actually isn't supported by Linux.
Diffstat (limited to 'session/direct.c')
-rw-r--r-- | session/direct.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/session/direct.c b/session/direct.c index 0bee21d3..353a93bc 100644 --- a/session/direct.c +++ b/session/direct.c @@ -23,10 +23,6 @@ #include <sys/capability.h> #endif -#ifndef KDSKBMUTE -#define KDSKBMUTE 0x4B51 -#endif - enum { DRM_MAJOR = 226 }; const struct session_impl session_direct; @@ -147,9 +143,7 @@ static void direct_session_finish(struct wlr_session *base) { .mode = VT_AUTO, }; - if (ioctl(session->tty_fd, KDSKBMUTE, 0)) { - ioctl(session->tty_fd, KDSKBMODE, session->kb_mode); - } + ioctl(session->tty_fd, KDSKBMODE, session->kb_mode); ioctl(session->tty_fd, KDSETMODE, KD_TEXT); ioctl(session->tty_fd, VT_SETMODE, &mode); @@ -214,8 +208,7 @@ static bool setup_tty(struct direct_session *session, struct wl_display *display goto error; } - if (ioctl(session->tty_fd, KDSKBMUTE, 1) && - ioctl(session->tty_fd, KDSKBMODE, K_OFF)) { + if (ioctl(session->tty_fd, KDSKBMODE, K_OFF)) { wlr_log_errno(L_ERROR, "Failed to set keyboard mode"); goto error; } |