[vte] widget: More input-enabled fixes
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: More input-enabled fixes
- Date: Tue, 22 Apr 2014 16:08:04 +0000 (UTC)
commit 9dbe3c51e3de5010a3abf755e30f3708d1eca525
Author: Christian Persch <chpe gnome org>
Date: Tue Apr 22 08:31:14 2014 +0200
widget: More input-enabled fixes
Check in more places that input is enabled before trying to send
data to the child.
src/vte.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 8617b73..c0c5c27 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6331,6 +6331,10 @@ static void
vte_terminal_paste(VteTerminal *terminal, GdkAtom board)
{
GtkClipboard *clipboard;
+
+ if (!terminal->pvt->input_enabled)
+ return;
+
clipboard = vte_terminal_clipboard_get(terminal, board);
if (clipboard != NULL) {
_vte_debug_print(VTE_DEBUG_SELECTION,
@@ -7092,7 +7096,7 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event)
handled = TRUE;
}
- if (!handled)
+ if (!handled && terminal->pvt->input_enabled)
vte_terminal_maybe_send_mouse_drag(terminal, event);
break;
default:
@@ -7314,7 +7318,7 @@ vte_terminal_button_release(GtkWidget *widget, GdkEventButton *event)
default:
break;
}
- if (!handled) {
+ if (!handled && terminal->pvt->input_enabled) {
handled = vte_terminal_maybe_send_mouse_button(terminal, event);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]