if search is active dont apply unfocused options

This commit is contained in:
rhodes-b
2026-03-08 00:24:46 -06:00
parent 472b926a4d
commit 8635fef7a5

View File

@@ -822,11 +822,19 @@ pub const Surface = extern struct {
/// Callback used to determine whether unfocused-split-fill / unfocused-split-opacity
/// should be applied to the surface
fn closureShouldUnfocusedSplitBeShown(
_: *Self,
self: *Self,
focused: c_int,
is_split: c_int,
) callconv(.c) c_int {
return @intFromBool(focused == 0 and is_split != 0);
const priv = self.private();
var val = gobject.ext.Value.new(bool);
defer val.unset();
gobject.Object.getProperty(
priv.search_overlay.as(gobject.Object),
SearchOverlay.properties.active.name,
&val,
);
return @intFromBool(val.getBoolean() == 0 and focused == 0 and is_split != 0);
}
pub fn toggleFullscreen(self: *Self) void {