From 08f621af5b74233451dbf51341225a4d26c810f7 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Thu, 15 Aug 2013 16:03:33 +0430 Subject: [PATCH] fbpad: never draw on the framebuffer when another VT is active --- fbpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbpad.c b/fbpad.c index 447101d..4868c82 100644 --- a/fbpad.c +++ b/fbpad.c @@ -33,7 +33,7 @@ static int tops[NTAGS]; /* top terms of tags */ static int ctag; /* current tag */ static int ltag; /* the last tag */ static int exitit; -static int hidden; +static int hidden; /* do not touch the framebuffer */ static int locked; static char pass[1024]; static int passlen; @@ -225,7 +225,7 @@ static void temp_switch(int termid) static void switch_back(int termid) { if (termid != cterm()) - term_switch(termid, cterm(), 1, 0, 0); + term_switch(termid, cterm(), !hidden, 0, 0); } static int poll_all(void) -- 2.11.4.GIT