diff --git a/config.h b/config.h index 2c3bb58..dbb1324 100755 --- a/config.h +++ b/config.h @@ -1,6 +1,6 @@ #define SHOLDCOL 0xC8C8C8 #define HOLDCOL 0x444444 -#define SBORDERCOL 0x1F9B92 +#define SBORDERCOL 0x17736C #define BORDERCOL 0x000000 #define GHOSTCOL 0x797979 #define BORDER 4 @@ -36,4 +36,4 @@ #define NEXTVIRT_KEY XK_Right #define PREVVIRT_KEY XK_Left -#define LAUNCH_KEY XK_slash \ No newline at end of file +#define LAUNCH_KEY XK_slash diff --git a/key.c b/key.c index 6758bc9..2c5e7ad 100755 --- a/key.c +++ b/key.c @@ -111,6 +111,8 @@ keypress(XKeyEvent *e) /* basic wm functionality */ + if(e->keycode == tabcode && (e->state&Mod1Mask) == (1<<3)) + alttab(e->state&ShiftMask); if(e->keycode == dcode && (e->state&SHORTCUTMOD) == (MODBITS)) delete(current, 0); if(e->keycode == icode && (e->state&SHORTCUTMOD) == (MODBITS)) @@ -124,27 +126,27 @@ keypress(XKeyEvent *e) /* half snap */ if (e->keycode == hcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, 0, scrw/2, scrh); + quickreshape(current, 0, 0, ra.width/2, ra.height); if (e->keycode == lcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, scrw/2, 0, scrw/2, scrh); + quickreshape(current, ra.width/2, 0, ra.width/2, ra.height); if (e->keycode == jcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, scrh/2, scrw, scrh/2); + quickreshape(current, 0, ra.height/2, ra.width, ra.height/2); if (e->keycode == kcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, 0, scrw, scrh/2); + quickreshape(current, 0, 0, ra.width, ra.height/2); /* quarter snap */ if (e->keycode == qcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, 0, scrw/2, scrh/2); + quickreshape(current, 0, 0, ra.width/2, ra.height/2); if (e->keycode == wcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, 0, scrh/2, scrw/2, scrh/2); + quickreshape(current, 0, ra.height/2, ra.width/2, ra.height/2); if (e->keycode == ocode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, scrw/2, scrh/2, scrw/2, scrh/2); + quickreshape(current, ra.width/2, ra.height/2, ra.width/2, ra.height/2); if (e->keycode == pcode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, scrw/2, 0, scrw/2, scrh/2); + quickreshape(current, ra.width/2, 0, ra.width/2, ra.height/2); /* center snap */ if (e->keycode == ccode && (e->state&SHORTCUTMOD) == (MODBITS)) - quickreshape(current, scrw/5, scrh/5, 3*scrw/5, 3*scrh/5); + quickreshape(current, ra.width/5, ra.height/5, 3*ra.width/5, 3*ra.height/5); /* launch */