aboutsummaryrefslogtreecommitdiffstats
path: root/fbcon.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-04-16 12:30:24 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-04-16 12:30:24 +0200
commit2d62ce153a386d8c67dfd0d965d746a754ef4129 (patch)
treec7ce4c59eceb3b6eb179ae8075597ac49143dde7 /fbcon.c
parent5737cf1d24c868a55eafc59a51c000dc7f4f63f6 (diff)
downloadfbida-2d62ce153a386d8c67dfd0d965d746a754ef4129.tar.gz
logind tweaks
Diffstat (limited to 'fbcon.c')
-rw-r--r--fbcon.c10
1 files changed, 5 insertions, 5 deletions
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 */