ratpoison-devel
[Top][All Lists]
Advanced

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

[RP] [PATCH] bugfix for multiple screen


From: John Meacham
Subject: [RP] [PATCH] bugfix for multiple screen
Date: Sun Feb 22 23:37:01 2004
User-agent: Mutt/1.4.2i

there is a race condition that will keep the current frame pointing at
the wrong window when using multiple screens. it is especially apparent
when you use gestures to quickly filter between your screens.

here is a fix.
pretty simple. when hiding the current frame message, hide it on all
windows, and when posting it, be sure to hide any that are sticking
around first.

Index: src/split.c
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/src/split.c,v
retrieving revision 1.48
diff -c -r1.48 split.c
*** src/split.c 29 Aug 2003 21:17:43 -0000      1.48
--- src/split.c 23 Feb 2004 07:14:55 -0000
***************
*** 888,899 ****
  void
  hide_frame_indicator ()
  {
!   XUnmapWindow (dpy, current_screen()->frame_window);
  }
  
  void
  show_frame_indicator ()
  {
    show_frame_message (MESSAGE_FRAME_STRING);
    alarm (defaults.frame_indicator_timeout);
  }
--- 888,902 ----
  void
  hide_frame_indicator ()
  {
!   int i;
!   for (i=0; i<num_screens; i++)
!     XUnmapWindow (dpy, screens[i].frame_window);
  }
  
  void
  show_frame_indicator ()
  {
+   hide_frame_indicator ();
    show_frame_message (MESSAGE_FRAME_STRING);
    alarm (defaults.frame_indicator_timeout);
  }

-- 
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - address@hidden
---------------------------------------------------------------------------



reply via email to

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