Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1e23066 authored by Michal Januszewski's avatar Michal Januszewski Committed by Linus Torvalds
Browse files

fbcon: don't draw cursor when it's disabled



When the cursor and echo are disabled on the current console, pressing a
key will cause a black rectangle to be painted in the cursor's position.
Fix this by not touching the framebuffer in fbcon_cursor() when the
cursor is off.

Signed-off-by: default avatarMichal Januszewski <spock@gentoo.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 31990a9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1310,7 +1310,7 @@ static void fbcon_cursor(struct vc_data *vc, int mode)
	int y;
	int y;
 	int c = scr_readw((u16 *) vc->vc_pos);
 	int c = scr_readw((u16 *) vc->vc_pos);


	if (fbcon_is_inactive(vc, info))
	if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1)
		return;
		return;


	ops->cursor_flash = (mode == CM_ERASE) ? 0 : 1;
	ops->cursor_flash = (mode == CM_ERASE) ? 0 : 1;