Do some small cleanup

- Fix workspace events (security config isn't in use so it wasn't being
  sent)
- Kill status bar process when swaybar exits
- Don't rearrange windows on every layer surface commit
This commit is contained in:
Drew DeVault 2018-03-29 21:09:34 -04:00
parent 5f5076baff
commit f3fbf19312
3 changed files with 2 additions and 24 deletions

View file

@ -204,8 +204,8 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
if (wlr_output != NULL) {
struct sway_output *output = wlr_output->data;
struct wlr_box old_geo = layer->geo;
arrange_layers(output);
if (memcmp(&old_geo, &layer->geo, sizeof(struct wlr_box)) != 0) {
arrange_layers(output);
// TODO DAMAGE apply whole surface from previous and new geos
} else {
// TODO DAMAGE from surface damage