Skip to content

Commit 7d78656

Browse files
committed
check xwayland usage against xinput
1 parent b0c5da3 commit 7d78656

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Daemon/ydotoold.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,10 @@ int main(int argc, char **argv) {
357357
const char *xinput_path = "/usr/bin/xinput";
358358

359359
if (getenv("DISPLAY")) {
360-
if (stat(xinput_path, &sbuf) == 0) {
360+
if (getenv("WAYLAND_DISPLAY")) {
361+
362+
}
363+
else if (stat(xinput_path, &sbuf) == 0) {
361364
pid_t npid = vfork();
362365

363366
if (npid == 0) {

0 commit comments

Comments
 (0)