Package: mlterm
Version: 2.9.2-2
Severity: normal
Tags: patch

When you drag the scrollbar to see the terminal log, the scrollbar
behaves oddly. Here is an example case showing the oddity:

* Launch mlterm, and make the scrollbar a little bit smaller than the
  original size.
* Drag around the bottom of the scrollbar and move it up, then release
  the mouse button. 
* Make the scrollbar smaller.
* Drag a different location on the scrollbar, and move it up and down.

When you reach this point, the mouse cursor is far off the scrollbar.
When you move it to the bottom, the mouse cursor is even off the
mlterm window.

I wrote the attached patch to fix this bug. As far as I tested, it
works well. The same patch should be applied to the corresponding file
in xwindow_tiny directory. I also reported this bug to the upstream
authors, so you don't need to forward it to them.

Takeshi

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages mlterm depends on:
ii  libc6                    2.3.5-1         GNU C Library: Shared libraries an
ii  libfontconfig1           2.3.2-1         generic font configuration library
ii  libfreetype6             2.1.7-2.4       FreeType 2 font engine, shared lib
ii  libfribidi0              0.10.4-6        Free Implementation of the Unicode
ii  libglib2.0-0             2.6.4-1         The GLib library of C routines
ii  libgtk2.0-0              2.6.7-1         The GTK+ graphical user interface 
ii  libice6                  4.3.0.dfsg.1-13 Inter-Client Exchange library
ii  libsm6                   4.3.0.dfsg.1-13 X Window System Session Management
ii  libx11-6                 4.3.0.dfsg.1-13 X Window System protocol client li
ii  libxft2                  2.1.7-1         FreeType-based font drawing librar
ii  libxrender1              1:0.8.3-1       X Rendering Extension client libra
ii  mlterm-common            2.9.2-2         MultiLingual TERMinal, common file
ii  xlibs                    4.3.0.dfsg.1-13 X Keyboard Extension (XKB) configu
ii  zlib1g                   1:1.2.2-4       compression library - runtime

-- no debconf information

*** /home/tkh/mlterm-scrollbar.patch
--- xwindow/x_scrollbar.c.orig  2005-02-10 08:15:07.000000000 -0700
+++ xwindow/x_scrollbar.c       2005-05-22 06:00:30.597051171 -0600
@@ -538,6 +538,11 @@
                
                sb->is_pressing_down_button = 0 ;
        }
+
+       if( sb->is_motion)
+       {
+               sb->is_motion = 0 ;
+       }
 }
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to