[PATCH weston] Ignore the OSC code for desktop notifications

Dima Ryazanov dima at gmail.com
Fri Nov 4 06:46:02 UTC 2016


In Fedora, bash is configured to display a desktop notification when a command
finishes (and the terminal is not focused). weston-terminal complains about it;
let's silence it.

Signed-off-by: Dima Ryazanov <dima at gmail.com>
---
 clients/terminal.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clients/terminal.c b/clients/terminal.c
index 6257cb7..64768eb 100644
--- a/clients/terminal.c
+++ b/clients/terminal.c
@@ -1297,6 +1297,8 @@ handle_osc(struct terminal *terminal)
 		break;
 	case 7: /* shell cwd as uri */
 		break;
+	case 777: /* Desktop notifications */
+		break;
 	default:
 		fprintf(stderr, "Unknown OSC escape code %d, text %s\n",
 			code, p);
-- 
2.9.3



More information about the wayland-devel mailing list