From 42eef90268c52cfcc45872fe0237d22fa1907325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 4 Nov 2019 12:00:50 +0100 Subject: [PATCH 1/2] csi: recognize CSI ? 1042/1043 h/l 1042: set 'urgency' window manager hint when receiving ctrl-g 1043: raise window when receiving ctrl-g --- csi.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/csi.c b/csi.c index a5e19290..79927e9f 100644 --- a/csi.c +++ b/csi.c @@ -775,6 +775,14 @@ csi_dispatch(struct terminal *term, uint8_t final) /* metaSendsEscape - we always send escape */ break; + case 1042: + LOG_WARN("unimplemented: 'urgency' window manager hint on ctrl-g"); + break; + + case 1043: + LOG_WARN("unimplemented: raise window on ctrl-g"); + break; + case 1049: if (term->grid != &term->alt) { selection_cancel(term); @@ -865,6 +873,14 @@ csi_dispatch(struct terminal *term, uint8_t final) LOG_WARN("unimplemented: meta does *not* send escape"); break; + case 1042: + /* 'urgency' window manager hint on ctrl-g */ + break; + + case 1043: + /* raise window on ctrl-g */ + break; + case 1049: if (term->grid == &term->alt) { selection_cancel(term); From 5f6d230c10881a5f3e9b4808a1b9f4893616b992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 4 Nov 2019 12:23:02 +0100 Subject: [PATCH 2/2] csi: comment out handling of CSI ? 1042/1043 h/l In Wayland, we neither _have_ an urgency hint to set, nor can we raise the window(?) --- csi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/csi.c b/csi.c index 79927e9f..1af30005 100644 --- a/csi.c +++ b/csi.c @@ -775,6 +775,7 @@ csi_dispatch(struct terminal *term, uint8_t final) /* metaSendsEscape - we always send escape */ break; +#if 0 case 1042: LOG_WARN("unimplemented: 'urgency' window manager hint on ctrl-g"); break; @@ -782,6 +783,7 @@ csi_dispatch(struct terminal *term, uint8_t final) case 1043: LOG_WARN("unimplemented: raise window on ctrl-g"); break; +#endif case 1049: if (term->grid != &term->alt) { @@ -873,6 +875,7 @@ csi_dispatch(struct terminal *term, uint8_t final) LOG_WARN("unimplemented: meta does *not* send escape"); break; +#if 0 case 1042: /* 'urgency' window manager hint on ctrl-g */ break; @@ -880,6 +883,7 @@ csi_dispatch(struct terminal *term, uint8_t final) case 1043: /* raise window on ctrl-g */ break; +#endif case 1049: if (term->grid == &term->alt) {