mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-04 10:54:48 +00:00
if search is active dont apply unfocused options
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user