mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 03:11:27 +00:00
silly mistake + style
This commit is contained in:
parent
beabb12d63
commit
2ac3535afe
|
@ -39,7 +39,7 @@ bool workspace_by_name(swayc_t *view, void *data) {
|
||||||
|
|
||||||
bool workspace_destroy(swayc_t *workspace) {
|
bool workspace_destroy(swayc_t *workspace) {
|
||||||
//Dont destroy if there are children
|
//Dont destroy if there are children
|
||||||
if(workspace->children->length) {
|
if (workspace->children->length) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
sway_log(L_DEBUG, "Workspace: Destroying workspace '%s'", workspace->name);
|
sway_log(L_DEBUG, "Workspace: Destroying workspace '%s'", workspace->name);
|
||||||
|
@ -64,8 +64,8 @@ swayc_t *workspace_find_by_name(const char* name) {
|
||||||
void workspace_switch(swayc_t *workspace) {
|
void workspace_switch(swayc_t *workspace) {
|
||||||
if (active_workspace) {
|
if (active_workspace) {
|
||||||
sway_log(L_DEBUG, "workspace: changing from '%s' to '%s'", active_workspace->name, workspace->name);
|
sway_log(L_DEBUG, "workspace: changing from '%s' to '%s'", active_workspace->name, workspace->name);
|
||||||
if(strcmp(active_workspace->name, workspace->name) == 0) {
|
if (active_workspace == workspace) {
|
||||||
return; //Dont do anything if they are the same workspace
|
return;
|
||||||
}
|
}
|
||||||
uint32_t mask = 1;
|
uint32_t mask = 1;
|
||||||
// set all c_views in the old workspace to the invisible mask
|
// set all c_views in the old workspace to the invisible mask
|
||||||
|
|
Loading…
Reference in a new issue