Fix clipboard backend on urxvt terminal

This commit is contained in:
Federico Terzi 2019-09-22 16:43:58 +02:00
parent 55902f4ff8
commit c0c439a4d1
3 changed files with 4 additions and 2 deletions

2
Cargo.lock generated
View File

@ -223,7 +223,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "espanso"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"backtrace 0.3.37 (registry+https://github.com/rust-lang/crates.io-index)",
"chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "espanso"
version = "0.1.1"
version = "0.1.2"
authors = ["Federico Terzi <federicoterzi96@gmail.com>"]
license = "GPL-3.0"
description = "Cross-platform Text Expander written in Rust"

View File

@ -376,6 +376,8 @@ int32_t is_current_window_terminal() {
if (res > 0) {
if (strstr(class_buffer, "terminal") != NULL) {
return 1;
}else if (strstr(class_buffer, "URxvt") != NULL) { // Manjaro terminal
return 1;
}
}