Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100728 - x11-terms/xterm - problem with cursor after resizing windows in fvwm
Summary: x11-terms/xterm - problem with cursor after resizing windows in fvwm
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2005-07-29 10:10 UTC by Christoph Bussenius
Modified: 2007-12-26 10:50 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Bussenius 2005-07-29 10:10:34 UTC
XTerm's cursor indicates whether the xterm has the keyboard focus.  Usually,
when it hasn't got the focus, the cursor is a hollow square, and when it has the
focus, the cursor is a filled square (or the cursor might even blink, depending
on your configuration).

I found a bug that makes xterm permanently show the focused cursor.  I can only
reproduce this problem using fvwm as a window manager, however.

Reproducible: Always
Steps to Reproduce:
1. Open two xterms and place them so that they overlap
2. Resize the wholly visible xterm so that the overlapping area gets larger. 
(To do so, draw the corner of the window using the mouse.  Use a corner that
covers the second xterm.)

Actual Results:  
Now the cursor of the covered xterm will look like it had got the keyboard
focus.  This will not change, no matter how often you give and take it the focus.


The bug does not seem to depend on fvwm's configuration.  You can reproduce it
with an empty .fvwm directory.

Another thing I've noticed:

1. Start a failsafe xterm session
2. Type 'xterm &' to produce a second xterm
3. Type 'fvwm &'
4. Trigger the bug as described above, using your two xterms
5. Exit fvwm

You will notice that when fvwm exits, the xterm cursors will be bug-free again.


I tried the combinations fvwm-2.5.10-r6 / xterm-196-r1 and fvwm-2.5.13-r1 /
xterm-200-r3.
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2005-08-01 16:30:54 UTC
This looks like an xterm bug, it wont unset the screen->select INWINDOW flag 
while FOCUS is set, I dont know what the correct fix is but you can see 
commenting out the (screen->select & FOCUS) check in DoSpecialLeaveNotify() from 
misc.c fixes it.

You can trigger it using the xse utility from within an xterm:

$ xse -window $WINDOWID '<FocusOut> Normal DetailNone' '<EnterWindow> Normal 
DetailNone' '<FocusIn> Normal DetailNone'
# Then fix it with:
$ xse -window  $WINDOWID '<FocusOut> Normal DetailNone' '<EnterWindow> Normal 
DetailNone' '<FocusIn> Normal DetailNone'

As far as I can tell, there is nothing wrong with the sequence of events xterm 
receives, and either way it does not appear to be fvwm at fault, so back to you 
seemant :)
Comment 2 Thomas Dickey 2005-08-01 17:30:53 UTC
This sounds like
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=303889
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2005-10-19 07:42:29 UTC
fixed in xterm-205, in portage shortly
Comment 4 Christoph Bussenius 2005-11-19 04:21:52 UTC
I've just emerged xterm-205, and the bug does still occur.
Comment 5 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-08-13 01:30:03 UTC
Thomas, any update about this?
Comment 6 Thomas Dickey 2006-08-13 03:09:22 UTC
no - I haven't made further changes in that area.
(I can try to reproduce the problem - will check today).
Comment 7 Thomas Dickey 2006-08-13 16:53:58 UTC
A quick check shows I can reproduce the problem as described.
So it's still on my to-do list.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-12-26 10:50:29 UTC
Marking this upstream. Feel free to reopen once there's a patch available at least.