]> git.armaanb.net Git - st.git/blobdiff - st.c
fix: correctly encode mouse buttons >= 8 in X10 and SGR mode
[st.git] / st.c
diff --git a/st.c b/st.c
index 76b7e0d4386e0e39693a51364893ed3cd125f785..abbbe4b86c44bbe29660e1a2beaea022b145a992 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1853,7 +1853,15 @@ strhandle(void)
        case ']': /* OSC -- Operating System Command */
                switch (par) {
                case 0:
+                       if (narg > 1) {
+                               xsettitle(strescseq.args[1]);
+                               xseticontitle(strescseq.args[1]);
+                       }
+                       return;
                case 1:
+                       if (narg > 1)
+                               xseticontitle(strescseq.args[1]);
+                       return;
                case 2:
                        if (narg > 1)
                                xsettitle(strescseq.args[1]);