freebsd-src/sys/dev/syscons
Vadim Ushakov 751c323b82 sc: Use current console rather than first console for mouse input
When mouse reporting feature is turned on (control sequence ^[[?1000h),
syscons sends valid mouse coordinates only for ttyv0. Applications
running on other ttys always (erroneously) get mouse coordinates from
the first tty, not from tty they actually run.

Steps to reproduce:
1. On ttyv0, run any application that uses mouse reporting feature. Make
   some clicks. The feature works properly.
2. Switch to another ttyv, run the application. The application receives
   mouse click events, but mouse position reported by syscons to the
   application does not match with the actual mouse position on the screen.

Expected result:
Reported mouse position should match with visible mouse position.

PR: 193339
Reviewed by: imp
2024-01-14 09:24:41 -07:00
..
blank sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
daemon sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
dragon sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fade sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fire sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fonts sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
green sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
logo Remove my middle name. 2023-08-17 15:08:30 +02:00
plasma sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
rain Remove my middle name. 2023-08-17 15:08:30 +02:00
snake sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
star sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
warp Remove my middle name. 2023-08-17 15:08:30 +02:00
scgfbrndr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
schistory.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
scmouse.c sc: Use current console rather than first console for mouse input 2024-01-14 09:24:41 -07:00
scterm-dumb.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
scterm-sc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
scterm-teken.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
scterm.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sctermvar.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
scvesactl.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
scvgarndr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
scvidctl.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
scvtb.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
syscons.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
syscons.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
sysmouse.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00