mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
small change
This commit is contained in:
parent
2ac3535afe
commit
25a3aa6ed6
1 changed files with 1 additions and 4 deletions
|
@ -62,11 +62,8 @@ swayc_t *workspace_find_by_name(const char* name) {
|
|||
}
|
||||
|
||||
void workspace_switch(swayc_t *workspace) {
|
||||
if (active_workspace) {
|
||||
if (workspace != active_workspace && active_workspace) {
|
||||
sway_log(L_DEBUG, "workspace: changing from '%s' to '%s'", active_workspace->name, workspace->name);
|
||||
if (active_workspace == workspace) {
|
||||
return;
|
||||
}
|
||||
uint32_t mask = 1;
|
||||
// set all c_views in the old workspace to the invisible mask
|
||||
container_map(active_workspace, set_mask, &mask);
|
||||
|
|
Loading…
Reference in a new issue