diff options
author | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-05-08 22:20:57 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-05-08 22:20:57 +0000 |
commit | 0f6befd404efad9584311f0bea326034170b83c8 (patch) | |
tree | 61b8f2a6b7d13c4b6695bc8bf80b1ab70ea7d08f /src/vte.c | |
parent | fce004c8c6ed9b6e6dd6f2803bf4d86edb397562 (diff) |
Warning fixes and cleanups.vte_0_3_11
* src/vte.c: Warning fixes and cleanups.
Diffstat (limited to 'src/vte.c')
-rw-r--r-- | src/vte.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -3086,8 +3086,6 @@ vte_sequence_handler_designate_gx(VteTerminal *terminal, { GValue *value; GtkWidget *widget; - long param, arg1, arg2; - int i; char c; g_return_if_fail(VTE_IS_TERMINAL(terminal)); @@ -5324,6 +5322,11 @@ vte_terminal_send_mouse_drag(VteTerminal *terminal, GdkEventMotion *event) } } + /* Read the modifiers. */ + if (gdk_event_get_state((GdkEvent*)event, &modifiers) == FALSE) { + modifiers = 0; + } + /* Encode the modifiers. */ if (modifiers & GDK_SHIFT_MASK) { cb |= 4; @@ -5629,8 +5632,8 @@ vte_terminal_button_press(GtkWidget *widget, GdkEventButton *event) modifiers = 0; } /* Shift+click is always ours. */ - if ((terminal->pvt->mouse_send_xy_on_button) || - (terminal->pvt->mouse_send_xy_on_click) && + if ((terminal->pvt->mouse_send_xy_on_button || + terminal->pvt->mouse_send_xy_on_click) && ((modifiers & GDK_SHIFT_MASK) == 0)) { #ifdef VTE_DEBUG fprintf(stderr, "Sending click to child.\n"); |