/* Copyright (c) 2005 Russ Cox, see README for licence details */ #include #include #include #include #include #include #include #include #include "dat.h" #include "fns.h" #include "patchlevel.h" enum { GrabAltTab, GrabAltAny, }; static int tabcode = 0x17; //static int altcode = 0x40; //static int pgupcode = 0x63; //static int pgdowncode = 0x69; static void alttab(int shift); void keysetup(void) { int i; for(i=0; ikeycode == tabcode) alttab(e->state&ShiftMask); XAllowEvents(dpy, SyncKeyboard, e->time); } void keyrelease(XKeyEvent *e) { XAllowEvents(dpy, SyncKeyboard, e->time); } static void alttab(int shift) { shuffle(shift); // fprintf(stderr, "%sTab\n", shift ? "Back" : ""); }