vte r2286 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2286 - in trunk: . src
- Date: Tue, 2 Dec 2008 10:57:50 +0000 (UTC)
Author: behdad
Date: Tue Dec 2 10:57:50 2008
New Revision: 2286
URL: http://svn.gnome.org/viewvc/vte?rev=2286&view=rev
Log:
2008-12-02 Behdad Esfahbod <behdad gnome org>
* src/vte.c (vte_terminal_motion_notify): Do not discard motion notify
events with coordinates out of our allocation, or when the cell under
the cursor didn't change. These are useful for extending selection
and for sub-cell selection details, as well as app-requested all
motion tracking.
Modified:
trunk/ChangeLog
trunk/src/vte.c
Modified: trunk/src/vte.c
==============================================================================
--- trunk/src/vte.c (original)
+++ trunk/src/vte.c Tue Dec 2 10:57:50 2008
@@ -6798,27 +6798,11 @@
width = terminal->char_width;
height = terminal->char_height;
- /* If the pointer hasn't moved to another character cell, then we
- * need do nothing. */
- if (floor (x / width) == floor (terminal->pvt->mouse_last_x / width) &&
- floor (y / height) == floor (terminal->pvt->mouse_last_y / height)) {
- return TRUE;
- }
-
-
_vte_debug_print(VTE_DEBUG_EVENTS,
"Motion notify (%lf,%lf) [%.0f, %.0f].\n",
event->x, event->y,
floor (x / width), floor (y / height) + terminal->pvt->screen->scroll_delta);
- /* check to see if we care */
- if (event->window != widget->window ||
- event->x < 0 || event->x >= widget->allocation.width ||
- event->y < 0 || event->y >= widget->allocation.height) {
- goto skip_hilite;
- }
-
-
/* Read the modifiers. */
if (gdk_event_get_state((GdkEvent*)event, &modifiers)) {
terminal->pvt->modifiers = modifiers;
@@ -6866,7 +6850,6 @@
break;
}
-skip_hilite:
/* Start scrolling if we need to. */
if (event->y < VTE_PAD_WIDTH ||
event->y >= terminal->row_count * height + VTE_PAD_WIDTH) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]