gintctl: add SHIFT+[,] shortcut for testing dwindow setting

This commit is contained in:
Lephenixnoir 2022-11-19 19:03:26 +01:00
parent 5875a2f59a
commit a9608099b4
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 14 additions and 0 deletions

View File

@ -142,6 +142,20 @@ static bool getkey_global_shortcuts(key_event_t e)
getkey_recording = false;
}
}
if(e.shift && e.key == KEY_COMMA) {
static int stage = 0;
stage = (stage + 1) % 8;
int border = stage * _(3, 13);
struct dwindow win = {
.left = border,
.top = border,
.right = DWIDTH - border,
.bottom = DHEIGHT - border,
};
dwindow_set((struct dwindow){ 0, 0, DWIDTH, DHEIGHT });
dclear(_(C_WHITE, 0x5555));
dwindow_set(win);
}
return false;
}