From 2d62ce153a386d8c67dfd0d965d746a754ef4129 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 16 Apr 2019 12:30:24 +0200 Subject: logind tweaks --- fbcon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fbcon.c') diff --git a/fbcon.c b/fbcon.c index 4965472..d17efeb 100644 --- a/fbcon.c +++ b/fbcon.c @@ -611,12 +611,12 @@ int main(int argc, char *argv[]) exit(1); exit_signals_init(); signal(SIGTSTP,SIG_IGN); -#if 0 - if (console_switch_init(console_switch_suspend, - console_switch_resume) < 0) { - fprintf(stderr, "NOTICE: No vt switching available on terminal.\n"); + if (!logind) { + if (console_switch_init(console_switch_suspend, + console_switch_resume) < 0) { + fprintf(stderr, "NOTICE: No vt switching available on terminal.\n"); + } } -#endif active = true; /* init cairo */ -- cgit