From b7055e2026abc191d87042891c927725aed6aaf4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 21 Sep 2023 08:49:14 -0700 Subject: [PATCH] core: send proper reporting code for alt not super --- src/Surface.zig | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index 57c1d8363..d33760f68 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -1296,7 +1296,7 @@ fn mouseReport( // X10 doesn't have modifiers if (self.io.terminal.flags.mouse_event != .x10) { if (mods.shift) acc += 4; - if (mods.super) acc += 8; + if (mods.alt) acc += 8; if (mods.ctrl) acc += 16; } @@ -1469,10 +1469,7 @@ pub fn mouseButtonCallback( { self.renderer_state.mutex.lock(); defer self.renderer_state.mutex.unlock(); - if (self.io.terminal.flags.mouse_event != .none) report: { - // Shift overrides mouse "grabbing" in the window, taken from Kitty. - if (mods.shift) break :report; - + if (self.io.terminal.flags.mouse_event != .none) { // In any other mouse button scenario without shift pressed we // clear the selection since the underlying application can handle // that in any way (i.e. "scrolling").