focus:
TOK_FOCUS
{
+ if (focused &&
+ focused->type != CT_WORKSPACE &&
+ focused->fullscreen_mode != CF_NONE) {
+ LOG("Cannot change focus while in fullscreen mode.\n");
+ break;
+ }
+
owindow *current;
if (match_is_empty(¤t_match)) {
}
| TOK_FOCUS direction
{
+ if (focused &&
+ focused->type != CT_WORKSPACE &&
+ focused->fullscreen_mode != CF_NONE) {
+ LOG("Cannot change focus while in fullscreen mode.\n");
+ break;
+ }
+
int direction = $2;
switch (direction) {
case TOK_LEFT:
}
| TOK_FOCUS window_mode
{
+ if (focused &&
+ focused->type != CT_WORKSPACE &&
+ focused->fullscreen_mode != CF_NONE) {
+ LOG("Cannot change focus while in fullscreen mode.\n");
+ break;
+ }
+
printf("should focus: ");
if ($2 == TOK_TILING)
}
| TOK_FOCUS level
{
+ if (focused &&
+ focused->type != CT_WORKSPACE &&
+ focused->fullscreen_mode != CF_NONE) {
+ LOG("Cannot change focus while in fullscreen mode.\n");
+ break;
+ }
+
if ($2 == TOK_PARENT)
level_up();
else level_down();