Re: [PATCH] Make RC_OTHER always choose some other

Sadrul Habib Chowdhury <[email protected]> Mon, 6 Oct 2008 02:16:52 -0400
Newsgroups gmane.comp.gnu.screen
Message-ID <20081006061652.GA29537__43086.550923954$1238089077$gmane$org@localdomain>
* Sadrul Habib Chowdhury had this to say on [19 Sep 2008, 03:48:08 -0400]:
> * Jeroen Roovers had this to say on [18 Sep 2008, 18:52:11 +0200]:
> [snip]
> > Sometimes when you do RC_OTHER, you get presented with "This IS window (n)."
> > That's rather stupid as you didn't even ask for window n in the first place,
> > but simply _some_ other window. -JeR
> > 
[snip]
> Do you have a screenrc file
> that can be used to easily reproduce the bug?
> 

The following sequence of operations will reproduce the bug, both in the
current development source and in the 4.0.3 release:

	screen
	split
	screen
	screen
	focus
	select 2
	focus
	other
	kill
	focus
	other

I haven't had a chance to look for a proper fix, but a possible fix
could be to recompute D_other after a 'focus' if D_fore becomes the same
as D_other.

> Sadrul