mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
core: all SGR mouse report modes can tell button differences
Fixes #478
This commit is contained in:
@ -1325,7 +1325,10 @@ fn mouseReport(
|
|||||||
if (button == null) {
|
if (button == null) {
|
||||||
// Null button means motion without a button pressed
|
// Null button means motion without a button pressed
|
||||||
acc = 3;
|
acc = 3;
|
||||||
} else if (action == .release and self.io.terminal.flags.mouse_format != .sgr) {
|
} else if (action == .release and
|
||||||
|
self.io.terminal.flags.mouse_format != .sgr and
|
||||||
|
self.io.terminal.flags.mouse_format != .sgr_pixels)
|
||||||
|
{
|
||||||
// Release is 3. It is NOT 3 in SGR mode because SGR can tell
|
// Release is 3. It is NOT 3 in SGR mode because SGR can tell
|
||||||
// the application what button was released.
|
// the application what button was released.
|
||||||
acc = 3;
|
acc = 3;
|
||||||
|
Reference in New Issue
Block a user