restored alt-tab functionality, dimmed active border color a little bit (to distinguish from steppenwolf-dark scrollbars)

This commit is contained in:
Iris Lightshard 2019-12-05 00:34:54 -05:00
parent 662e30eb40
commit 92b2491a18
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
2 changed files with 13 additions and 11 deletions

View file

@ -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
#define LAUNCH_KEY XK_slash

20
key.c
View file

@ -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 */