Skip to content

Commit

Permalink
do not move bar to fullscreen spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKratz committed Jul 30, 2022
1 parent 743c9c8 commit 32d825c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bar_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,12 +694,12 @@ void bar_manager_handle_space_change(struct bar_manager* bar_manager) {
for (int i = 0; i < bar_manager->bar_count; i++) {
uint64_t dsid = display_space_id(bar_manager->bars[i]->did);
bar_manager->bars[i]->sid = mission_control_index(dsid);
bar_manager->bars[i]->shown = SLSSpaceGetType(g_connection, dsid) != 4;
if (bar_manager->bars[i]->dsid != dsid) {
bar_manager->bars[i]->dsid = dsid;
if (!bar_manager->sticky)
if (!bar_manager->sticky && bar_manager->bars[i]->shown)
bar_change_space(bar_manager->bars[i], dsid);
}
bar_manager->bars[i]->shown = SLSSpaceGetType(g_connection, dsid) != 4;

snprintf(info + cursor, 18 * bar_manager->bar_count + 4 - cursor,
"\t\"display-%d\": %d\n",
Expand Down

0 comments on commit 32d825c

Please sign in to comment.