Skip to content

Commit

Permalink
fix: print status when mapping and unmapping surface
Browse files Browse the repository at this point in the history
Fixes an issue where opening or killing
a client on a tag that is not currently
active would not update the status. This
caused external bars to not be notified
of the change.
  • Loading branch information
Frewacom committed Jan 2, 2022
1 parent 8fc6140 commit 1762643
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,7 @@ mapnotify(struct wl_listener *listener, void *data)

/* Set initial monitor, tags, floating status, and focus */
applyrules(c);
printstatus();

if (c->isfullscreen)
setfullscreen(c, 1);
Expand Down Expand Up @@ -2830,6 +2831,7 @@ unmapnotify(struct wl_listener *listener, void *data)
setmon(c, NULL, 0);
wl_list_remove(&c->flink);
wl_list_remove(&c->slink);
printstatus();
}

void
Expand Down

0 comments on commit 1762643

Please sign in to comment.