diff options
Diffstat (limited to 'src/group.c')
-rw-r--r-- | src/group.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/group.c b/src/group.c index 38b0fd3..98923df 100644 --- a/src/group.c +++ b/src/group.c @@ -464,3 +464,15 @@ groups_merge (rp_group *from, rp_group *to) group_insert_window (&to->mapped_windows, cur); } } + +void +set_current_group (rp_group *g) +{ + if (rp_current_group == g || g == NULL) + return; + + rp_current_group = g; + + /* Call the switch group hook. */ + hook_run (&rp_switch_group_hook); +} |