diff options
| -rw-r--r-- | config.def.h | 4 | ||||
| -rw-r--r-- | st.c | 2 | ||||
| -rw-r--r-- | st.h | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 293e00c..6f05dce 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -43,6 +43,10 @@ static unsigned int tripleclicktimeout = 600; | |||
| 43 | /* alt screens */ | 43 | /* alt screens */ |
| 44 | int allowaltscreen = 1; | 44 | int allowaltscreen = 1; |
| 45 | 45 | ||
| 46 | /* allow certain non-interactive (insecure) window operations such as: | ||
| 47 | setting the clipboard text */ | ||
| 48 | int allowwindowops = 0; | ||
| 49 | |||
| 46 | /* | 50 | /* |
| 47 | * draw latency range in ms - from new content/keypress/etc until drawing. | 51 | * draw latency range in ms - from new content/keypress/etc until drawing. |
| 48 | * within this range, st draws when content stops arriving (idle). mostly it's | 52 | * within this range, st draws when content stops arriving (idle). mostly it's |
| @@ -1861,7 +1861,7 @@ strhandle(void) | |||
| 1861 | xsettitle(strescseq.args[1]); | 1861 | xsettitle(strescseq.args[1]); |
| 1862 | return; | 1862 | return; |
| 1863 | case 52: | 1863 | case 52: |
| 1864 | if (narg > 2) { | 1864 | if (narg > 2 && allowwindowops) { |
| 1865 | dec = base64dec(strescseq.args[2]); | 1865 | dec = base64dec(strescseq.args[2]); |
| 1866 | if (dec) { | 1866 | if (dec) { |
| 1867 | xsetsel(dec); | 1867 | xsetsel(dec); |
| @@ -118,6 +118,7 @@ extern char *stty_args; | |||
| 118 | extern char *vtiden; | 118 | extern char *vtiden; |
| 119 | extern wchar_t *worddelimiters; | 119 | extern wchar_t *worddelimiters; |
| 120 | extern int allowaltscreen; | 120 | extern int allowaltscreen; |
| 121 | extern int allowwindowops; | ||
| 121 | extern char *termname; | 122 | extern char *termname; |
| 122 | extern unsigned int tabspaces; | 123 | extern unsigned int tabspaces; |
| 123 | extern unsigned int defaultfg; | 124 | extern unsigned int defaultfg; |
