Fix mouse-dragging mode lines on text-mode terminals.
commitda604136b92764f159442496a9b18cb48204787e
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 15:00:51 +0000 (9 18:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 15:00:51 +0000 (9 18:00 +0300)
tree2e7756156e7d31c78784b8a2f0a4a05f0f11fcfb
parentfeb7e20179471458b702ada2521272e913598314
Fix mouse-dragging mode lines on text-mode terminals.

 lisp/mouse.el (mouse-drag-line): On text-mode frames, count the mode
 line and header line as 1 pixel.  This fixes the 1-"pixel" (row)
 discrepancy between window-pixel-edges and mouse events, and
 avoids moving mode line up when the mouse click is on the modeline
 and no drag is attempted.
lisp/ChangeLog
lisp/mouse.el