rename setUnfocused to setUnfocusedFill
parent
52c2f02fa4
commit
cfcd11863e
|
|
@ -713,7 +713,7 @@ pub const SplitTree = extern struct {
|
||||||
if (!surface.getFocused()) {
|
if (!surface.getFocused()) {
|
||||||
// If we have more than 1 active surface and we aren't focused we want to apply unfocused-split-fill
|
// If we have more than 1 active surface and we aren't focused we want to apply unfocused-split-fill
|
||||||
if (self.getTree()) |tree| {
|
if (self.getTree()) |tree| {
|
||||||
if (tree.nodes.len > 1) surface.setUnfocused();
|
if (tree.nodes.len > 1) surface.setUnfocusedFill();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1493,7 +1493,7 @@ pub const Surface = extern struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If unfocused add the unfocused-split widget for this surface
|
/// If unfocused add the unfocused-split widget for this surface
|
||||||
pub fn setUnfocused(self: *Self) void {
|
pub fn setUnfocusedFill(self: *Self) void {
|
||||||
const priv = self.private();
|
const priv = self.private();
|
||||||
if (!priv.focused and (priv.unfocused_widget == null)) {
|
if (!priv.focused and (priv.unfocused_widget == null)) {
|
||||||
priv.unfocused_widget = unfocused_widget: {
|
priv.unfocused_widget = unfocused_widget: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue