Package: ratpoison
Version: 1.4.0.dfsg-2
Severity: normal

Problem: In my .ratpoisonrc, I have a hook to show me my windows while
rotating through them:
  addhook switchwin windows
My bar timeout is set to the default (5).  Sometimes, after rotating
rapidly through windows using "next" or "prev", the bar gets "stuck on"
--- when the timeout triggers, it blinks off and then immediately turns
back on, repeating every timeout period.  If I leave it for several
minutes, it usually goes away by itself, or I can kill it with the
"abort" command.  If I kill it with the "abort" command, it always comes
back then next time I switch windows.  This is pretty annoying.

To reproduce: try adding the same hook and rapidly rotating using
"next".  Sorry I can't suggest a more reliable method; I haven't figured
out exactly what triggers it.

Possible fix: I've identified a line of code which seems very suspicious
to me in src/actions.c, line 2642:
  if (!hide_bar (s) || defaults.bar_timeout > 0) show_bar (s, fmt);
The intent of the hide_bar is to deal with the bar_timeout == 0 case,
but it runs in either case, and I suspect there is a race condition
between the timeout alarm and the period between hide_bar and show_bar.
I've changed the line to:
  if ( defaults.bar_timeout > 0 || !hide_bar(s) ) show_bar( s, fmt );
and recompiled ratpoison.  Since I've done that, I haven't been able to
trigger the bug again, so I suspect it's fixed.

Cheers,
Chris




-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages ratpoison depends on:
ii  9menu                         1.8-1.1    Creates X menus from the shell
ii  libc6                         2.3.6-13   GNU C Library: Shared libraries
ii  libreadline5                  5.1-7      GNU readline and history libraries
ii  libx11-6                      2:1.0.0-6  X11 client-side library
ii  libxext6                      1:1.0.0-4  X11 miscellaneous extension librar
ii  libxtst6                      1:1.0.1-3  X11 Testing -- Resource extension 

Versions of packages ratpoison recommends:
ii  gnome-terminal [x-terminal-em 2.14.2-1   The GNOME 2 terminal emulator appl
ii  konsole [x-terminal-emulator] 4:3.2.2-1  KDE X terminal emulator
ii  menu                          2.1.27     generates programs menu for all me
ii  mlterm [x-terminal-emulator]  2.9.2-5+b1 MultiLingual TERMinal
ii  xterm [x-terminal-emulator]   210-3      X terminal emulator

-- no debconf information


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

Reply via email to