From 1f1163c8fd1a5bb0027164df1d26526d9561ad80 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 30 Nov 2020 14:38:50 -0500 Subject: [PATCH] only special case top line when fullscreen w/ selective mouse --- terminalemulator.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminalemulator.d b/terminalemulator.d index 24ad44e..b1902d9 100644 --- a/terminalemulator.d +++ b/terminalemulator.d @@ -304,7 +304,7 @@ class TerminalEmulator { auto text = getSelectedText(); if(text.length) { copyToPrimary(text); - } else if(!mouseButtonReleaseTracking || shift || (selectiveMouseTracking && termY != 0 && termY != cursorY)) { + } else if(!mouseButtonReleaseTracking || shift || (selectiveMouseTracking && (!alternateScreenActive || termY != 0) && termY != cursorY)) { // hyperlink check int idx = termY * screenWidth + termX; auto screen = (alternateScreenActive ? alternateScreen : normalScreen); @@ -428,6 +428,9 @@ class TerminalEmulator { if(!alternateScreenActive && (button == MouseButton.wheelUp || button.MouseButton.wheelDown)) goto do_default_behavior; } + // top line only gets special cased on full screen apps + if(selectiveMouseTracking && !alternateScreenActive && termY == 0 && cursorY != 0) + goto do_default_behavior; int b = baseEventCode;