Репозитории ALT
Группа :: Терминалы
Пакет: xterm
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0007-xterm-alt-disable-report_win_label.patch
Скачать
Скачать
From 0 Mon Sep 17 00:00:00 2001
From: "George V. Kouryachy (Fr. Br. George)" <george@altlinux.ru>
Date: Tue, 23 Oct 2012 14:15:58 +0400
Subject: [PATCH] xterm-alt-disable-report_win_label
diff --git a/xterm/charproc.c b/xterm/charproc.c
index defaced..defaced 100644
--- a/xterm/charproc.c
+++ b/xterm/charproc.c
@@ -7195,6 +7195,7 @@ get_window_label(XtermWidget xw)
* Report window label (icon or title) in dtterm protocol
* ESC ] code label ESC backslash
*/
+#ifdef ENABLE_REPORT_WIN_LABEL
static void
report_win_label(XtermWidget xw,
int code,
@@ -7219,6 +7220,7 @@ report_win_label(XtermWidget xw,
unparseputc(xw, '\\'); /* should be ST */
unparse_end(xw);
}
+#endif /* ENABLE_REPORT_WIN_LABEL */
/*
* Window operations (from CDE dtterm description, as well as extensions).
@@ -7495,19 +7497,23 @@ window_ops(XtermWidget xw)
#endif
case ewGetIconTitle: /* Report the icon's label */
+#ifdef ENABLE_REPORT_WIN_LABEL
if (AllowWindowOps(xw, ewGetIconTitle)) {
TRACE(("...get icon's label\n"));
report_win_label(xw, 'L', label = get_icon_label(xw));
free(label);
}
+#endif /* ENABLE_REPORT_WIN_LABEL */
break;
case ewGetWinTitle: /* Report the window's title */
+#ifdef ENABLE_REPORT_WIN_LABEL
if (AllowWindowOps(xw, ewGetWinTitle)) {
TRACE(("...get window's label\n"));
report_win_label(xw, 'l', label = get_window_label(xw));
free(label);
}
+#endif /* ENABLE_REPORT_WIN_LABEL */
break;
case ewPushTitle: /* save the window's title(s) on stack */