river-status: send view_tags on view map/unmap
This commit is contained in:
parent
35ceb08e1e
commit
a63fb461ba
@ -180,6 +180,11 @@ pub fn getRenderer(self: Self) *c.wlr_renderer {
|
|||||||
return c.river_wlr_backend_get_renderer(self.wlr_output.backend);
|
return c.river_wlr_backend_get_renderer(self.wlr_output.backend);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn sendViewTags(self: Self) void {
|
||||||
|
var it = self.status_trackers.first;
|
||||||
|
while (it) |node| : (it = node.next) node.data.sendViewTags();
|
||||||
|
}
|
||||||
|
|
||||||
const MasterPosition = enum {
|
const MasterPosition = enum {
|
||||||
Top,
|
Top,
|
||||||
Right,
|
Right,
|
||||||
|
@ -246,10 +246,7 @@ fn commitTransaction(self: *Self) void {
|
|||||||
view.dropStashedBuffer();
|
view.dropStashedBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (view_tags_changed) {
|
if (view_tags_changed) output.sendViewTags();
|
||||||
var it = output.status_trackers.first;
|
|
||||||
while (it) |node| : (it = node.next) node.data.sendViewTags();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Iterate over all seats and update focus
|
// Iterate over all seats and update focus
|
||||||
|
@ -248,6 +248,8 @@ pub fn map(self: *Self) void {
|
|||||||
|
|
||||||
c.wlr_surface_send_enter(self.wlr_surface.?, self.output.wlr_output);
|
c.wlr_surface_send_enter(self.wlr_surface.?, self.output.wlr_output);
|
||||||
|
|
||||||
|
self.output.sendViewTags();
|
||||||
|
|
||||||
root.arrange();
|
root.arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,6 +270,8 @@ pub fn unmap(self: *Self) void {
|
|||||||
const node = @fieldParentPtr(ViewStack(Self).Node, "view", self);
|
const node = @fieldParentPtr(ViewStack(Self).Node, "view", self);
|
||||||
self.output.views.remove(node);
|
self.output.views.remove(node);
|
||||||
|
|
||||||
|
self.output.sendViewTags();
|
||||||
|
|
||||||
root.arrange();
|
root.arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user