mirror of https://github.com/adamdruppe/arsd.git
only special case top line when fullscreen w/ selective mouse
This commit is contained in:
parent
6ee52d53f0
commit
1f1163c8fd
|
@ -304,7 +304,7 @@ class TerminalEmulator {
|
||||||
auto text = getSelectedText();
|
auto text = getSelectedText();
|
||||||
if(text.length) {
|
if(text.length) {
|
||||||
copyToPrimary(text);
|
copyToPrimary(text);
|
||||||
} else if(!mouseButtonReleaseTracking || shift || (selectiveMouseTracking && termY != 0 && termY != cursorY)) {
|
} else if(!mouseButtonReleaseTracking || shift || (selectiveMouseTracking && (!alternateScreenActive || termY != 0) && termY != cursorY)) {
|
||||||
// hyperlink check
|
// hyperlink check
|
||||||
int idx = termY * screenWidth + termX;
|
int idx = termY * screenWidth + termX;
|
||||||
auto screen = (alternateScreenActive ? alternateScreen : normalScreen);
|
auto screen = (alternateScreenActive ? alternateScreen : normalScreen);
|
||||||
|
@ -428,6 +428,9 @@ class TerminalEmulator {
|
||||||
if(!alternateScreenActive && (button == MouseButton.wheelUp || button.MouseButton.wheelDown))
|
if(!alternateScreenActive && (button == MouseButton.wheelUp || button.MouseButton.wheelDown))
|
||||||
goto do_default_behavior;
|
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;
|
int b = baseEventCode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue