Bug 193339 - [syscons] [patch] mouse reporting works properly only on ttyv0
Summary: [syscons] [patch] mouse reporting works properly only on ttyv0
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2014-09-05 09:50 UTC by Vadim Ushakov
Modified: 2014-09-05 14:18 UTC (History)
1 user (show)

See Also:

The patch (582 bytes, patch)
2014-09-05 09:51 UTC, Vadim Ushakov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Ushakov 2014-09-05 09:50:06 UTC
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.

The bug affects CURRENT as well as 10.0-RELEASE.

The patch seems to be trivial.
Comment 1 Vadim Ushakov 2014-09-05 09:51:02 UTC
Created attachment 146855 [details]
The patch