From 89dae63a0d2a084ff3f3efc933b79fb8dd715b75 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 27 Mar 2019 15:40:54 +0100 Subject: even more logind console switching --- fbcon.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'fbcon.c') diff --git a/fbcon.c b/fbcon.c index 2f0f2bc..e9f66bd 100644 --- a/fbcon.c +++ b/fbcon.c @@ -179,21 +179,25 @@ static void cleanup_and_exit(int code) static void console_switch_suspend(void) { + fprintf(stderr, "%s: start ...\n", __func__); + active = false; gfx->suspend_display(); libinput_suspend(kbd); logind_release_control(); - active = false; + fprintf(stderr, "%s: ... done\n", __func__); } static void console_switch_resume(void) { - active = true; + fprintf(stderr, "%s: start ...\n", __func__); logind_take_control(); libinput_resume(kbd); gfx->resume_display(); state1.clear++; state2.clear++; dirty++; + active = true; + fprintf(stderr, "%s: ... done\n", __func__); } /* ---------------------------------------------------------------------- */ -- cgit