mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
devdraw: do not interpret alt-tab as alt for compose
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5132050
This commit is contained in:
parent
6135b41c7d
commit
4b58d45707
4 changed files with 17 additions and 2 deletions
|
@ -15,6 +15,7 @@ David Swasey <david.swasey@gmail.com>
|
|||
Enrique Soriano <enrique.soriano@gmail.com>
|
||||
Eoghan Sherry <ejsherry@gmail.com>
|
||||
Fazlul Shahriar <fshahriar@gmail.com>
|
||||
Justin Davis <jrcd83@gmail.com>
|
||||
J.R. Mauro <jrm8005@gmail.com>
|
||||
Jani Lahtinen <jani.lahtinen8@gmail.com>
|
||||
Jeff Sickel <jas@corpus-callosum.com>
|
||||
|
|
|
@ -4,4 +4,6 @@ void _initdisplaymemimage(Memimage*);
|
|||
int _latin1(Rune*, int);
|
||||
int parsewinsize(char*, Rectangle*, int*);
|
||||
int mouseswap(int);
|
||||
void abortcompose(void);
|
||||
|
||||
|
||||
|
|
|
@ -137,12 +137,20 @@ __xtoplan9kbd(XEvent *e)
|
|||
return k+0;
|
||||
}
|
||||
|
||||
int alting;
|
||||
|
||||
void
|
||||
abortcompose(void)
|
||||
{
|
||||
alting = 0;
|
||||
}
|
||||
|
||||
extern int _latin1(Rune*, int);
|
||||
static Rune*
|
||||
xtoplan9latin1(XEvent *e)
|
||||
{
|
||||
static Rune k[10];
|
||||
static int alting, nk;
|
||||
static int nk;
|
||||
int n;
|
||||
int r;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
Button2MotionMask|\
|
||||
Button3MotionMask)
|
||||
|
||||
#define Mask MouseMask|ExposureMask|StructureNotifyMask|KeyPressMask|EnterWindowMask|LeaveWindowMask
|
||||
#define Mask MouseMask|ExposureMask|StructureNotifyMask|KeyPressMask|EnterWindowMask|LeaveWindowMask|FocusChangeMask
|
||||
|
||||
typedef struct Kbdbuf Kbdbuf;
|
||||
typedef struct Mousebuf Mousebuf;
|
||||
|
@ -549,6 +549,10 @@ runxevent(XEvent *xev)
|
|||
matchkbd();
|
||||
break;
|
||||
|
||||
case FocusOut:
|
||||
abortcompose();
|
||||
break;
|
||||
|
||||
case SelectionRequest:
|
||||
_xselect(xev);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue