emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117171: Fix bug #17588 with mouse highlight when


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-24 r117171: Fix bug #17588 with mouse highlight when an X frame is redisplayed frequently.
Date: Thu, 29 May 2014 16:48:37 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117171
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/17588
committer: Eli Zaretskii <address@hidden>
branch nick: emacs-24
timestamp: Thu 2014-05-29 19:47:49 +0300
message:
  Fix bug #17588 with mouse highlight when an X frame is redisplayed frequently.
  
   src/xterm.c (x_update_window_end): Don't invalidate the entire
   mouse-highlight info, just signal frame_up_to_date_hook that mouse
   highlight needs to be redisplayed.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/xterm.c                    xterm.c-20091113204419-o5vbwnq5f7feedwu-244
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-05-29 05:31:43 +0000
+++ b/src/ChangeLog     2014-05-29 16:47:49 +0000
@@ -1,3 +1,9 @@
+2014-05-29  Eli Zaretskii  <address@hidden>
+
+       * xterm.c (x_update_window_end): Don't invalidate the entire
+       mouse-highlight info, just signal frame_up_to_date_hook that mouse
+       highlight needs to be redisplayed.  (Bug#17588)
+
 2014-05-29  Paul Eggert  <address@hidden>
 
        Port the GDB-visible symbols to AIX.

=== modified file 'src/xterm.c'
--- a/src/xterm.c       2014-04-17 09:07:58 +0000
+++ b/src/xterm.c       2014-05-29 16:47:49 +0000
@@ -597,7 +597,13 @@
   /* If a row with mouse-face was overwritten, arrange for
      XTframe_up_to_date to redisplay the mouse highlight.  */
   if (mouse_face_overwritten_p)
-    reset_mouse_highlight (MOUSE_HL_INFO (XFRAME (w->frame)));
+    {
+      Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (XFRAME (w->frame));
+
+      hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1;
+      hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1;
+      hlinfo->mouse_face_window = Qnil;
+    }
 }
 
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]