[wmii] [PATCH] devdraw

From: Kris Maglione <jg_AT_suckless.org>
Date: Sat, 19 Jan 2008 13:28:00 -0500

This should be useful to p9p users. There have been a few quirks
irritating most of us for a while. 1) devdraw apps often think
that they're the wrong size at startup. 2) When you use Alt as
your modkey, and you press an accellerator, devdraw is left
expecting a compose. This fixes that in cases where the
accellerator causes the devdraw app to lose focus.
The first, I fixed quite a long time ago, and have just
submitted a patch for.

cvs diff: Diffing .
Index: devdraw.h
RCS file: /cvs/plan9/src/cmd/devdraw/devdraw.h,v
retrieving revision 1.1
diff -r1.1 devdraw.h
> int alting;
Index: x11-init.c
RCS file: /cvs/plan9/src/cmd/devdraw/x11-init.c,v
retrieving revision 1.3
diff -r1.3 x11-init.c
> XEvent ev;
> XSelectInput(_x.display, _x.drawable, StructureNotifyMask);
> do XMaskEvent(_x.display, StructureNotifyMask, &ev);
> while(ev.type != MapNotify);
Index: x11-itrans.c
RCS file: /cvs/plan9/src/cmd/devdraw/x11-itrans.c,v
retrieving revision 1.4
diff -r1.4 x11-itrans.c
> #include "devdraw.h"
< static int alting, nk;

> 	static int nk;
Index: x11-srv.c
RCS file: /cvs/plan9/src/cmd/devdraw/x11-srv.c,v
retrieving revision 1.3
diff -r1.3 x11-srv.c
< #define Mask MouseMask|ExposureMask|StructureNotifyMask|KeyPressMask|EnterWindowMask|LeaveWindowMask
> #define Mask MouseMask|ExposureMask|StructureNotifyMask|KeyPressMask|EnterWindowMask|LeaveWindowMask|FocusChangeMask
> 	case FocusOut:
> 		alting = 0;
> 		break;
Kris Maglione
The light at the end of the tunnel really is a train.
Received on Sat Jan 19 2008 - 19:28:35 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:33:36 UTC