Skip to content

Commit

Permalink
simple-tile: connect to workarea changed when creating wset (#1988)
Browse files Browse the repository at this point in the history
Otherwise, we only connect once the wset has been attached to another
output, which is too late.

Fixes #1983
  • Loading branch information
ammen99 authored Oct 29, 2023
1 parent 04e89bc commit e77780d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/tile/tile-plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ class tile_workspace_set_data_t : public wf::custom_data_t
wset->connect(&on_wset_attached);
wset->connect(&on_workspace_grid_changed);
resize_roots(wset->get_workspace_grid_size());
if (wset->get_attached_output())
{
wset->get_attached_output()->connect(&on_workarea_changed);
}

inner_gaps.set_callback(update_gaps);
outer_horiz_gaps.set_callback(update_gaps);
Expand Down

0 comments on commit e77780d

Please sign in to comment.