enum { CF_NONE = 0, CF_OUTPUT = 1, CF_GLOBAL = 2 } fullscreen_mode;
enum { L_DEFAULT = 0, L_STACKED = 1, L_TABBED = 2 } layout;
+ enum { BS_NORMAL = 0, BS_NONE = 1, BS_1PIXEL = 3 } border_style;
/** floating? (= not in tiling layout) This cannot be simply a bool
* because we want to keep track of whether the status was set by the
* application (by setting _NET_WM_WINDOW_TYPE appropriately) or by the
stacking { return TOK_STACKED; }
tabbed { return TOK_TABBED; }
border { return TOK_BORDER; }
+normal { return TOK_NORMAL; }
none { return TOK_NONE; }
1pixel { return TOK_1PIXEL; }
mode { return TOK_MODE; }
%token TOK_STACKED "stacked"
%token TOK_TABBED "tabbed"
%token TOK_BORDER "border"
+%token TOK_NORMAL "normal"
%token TOK_NONE "none"
%token TOK_1PIXEL "1pixel"
%token TOK_MODE "mode"
| exit
| restart
| reload
- /*
- | border */
+ | border
| layout
| restore
| move
| TOK_TOGGLE { $<number>$ = TOK_TOGGLE; }
;
+border:
+ TOK_BORDER WHITESPACE border_style
+ {
+ printf("border style should be changed to %d\n", $<number>3);
+ owindow *current;
+
+ /* check if the match is empty, not if the result is empty */
+ if (match_is_empty(¤t_match))
+ focused->border_style = $<number>3;
+ else {
+ TAILQ_FOREACH(current, &owindows, owindows) {
+ printf("matching: %p / %s\n", current->con, current->con->name);
+ current->con->border_style = $<number>3;
+ }
+ }
+ }
+ ;
+
+border_style:
+ TOK_NORMAL { $<number>$ = BS_NORMAL; }
+ | TOK_NONE { $<number>$ = BS_NONE; }
+ | TOK_1PIXEL { $<number>$ = BS_1PIXEL; }
+ ;
+
+
level:
TOK_LEVEL WHITESPACE level_direction
{