On Fri 2011.01.14 at 19:19 +0100, Thomas Pfaff wrote:
> There's a bug in cwm that screws up alt-tab if you follow the set of events
> described in the next paragraph. To regain alt-tab functionality you need
> to jerk the mouse around to focus clients and then it usually comes back to
> its senses again.
>
> So, start with a clean root window. Spawn two xterms, A and B, and place
> them side-by-side at the top of the screen. Focus B and vertically maximize
> it. Move ptr *near* bottom of B (below its original bottom y position).
> Alt-tab to focus A. Alt-tab to focus B. Vertically unmaximize B (ptr will
> now be over the root window) and alt-tab to A. Now alt-tab will not focus B
> and the ptr will be somewhere at the bottom of the root window. Can anyone
> else reproduce this?
yes, most certainly...
> It took a while to figure out the sequence of events that triggered this
> problem and there might be other ways it can be triggered. The same
> happens if you maximize (fullscreen) or horizontally maximize the window
> and move the ptr.
>
> This patch fixes the problem for me.
how's this simplier one?
Index: client.c
===================================================================
RCS file: /home/open/anoncvs/cvs/xenocara/app/cwm/client.c,v
retrieving revision 1.76
diff -u -p -r1.76 client.c
--- client.c 22 May 2010 22:10:31 -0000 1.76
+++ client.c 18 Jan 2011 12:23:37 -0000
@@ -435,6 +435,8 @@ client_ptrsave(struct client_ctx *cc)
if (client_inbound(cc, x, y)) {
cc->ptr.x = x;
cc->ptr.y = y;
+ } else {
+ cc->ptr.x = cc->ptr.y = -1;
}
}