Hello,

when using the window-snap-{up,down,left,right} functions in CWM(1), the 
window might jump away from the cursor, which makes it loose focus.

The window move and resize functions are "dragging" the cursor with them 
along the side of the window.

The attached simple patch warps the cursor with the window, so it stays
within it's relative position within the window.

Maintainer @CC.

Best Regards,
Stefan
Index: app/cwm/kbfunc.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/kbfunc.c,v
retrieving revision 1.166
diff -u -p -u -p -r1.166 kbfunc.c
--- app/cwm/kbfunc.c    13 Aug 2019 18:45:38 -0000      1.166
+++ app/cwm/kbfunc.c    14 Jan 2020 07:41:32 -0000
@@ -322,6 +322,7 @@ kbfunc_client_snap(void *ctx, struct car
                }
        }
        client_move(cc);
+       client_ptrwarp(cc);
 }
 
 void

Reply via email to