mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-27 02:56:28 +00:00
gtk: unify Wayland and X11 platforms
This commit is contained in:
committed by
Mitchell Hashimoto
parent
6ef757a8f8
commit
03fee2ac33
@@ -5782,6 +5782,14 @@ pub const BackgroundBlur = union(enum) {
|
||||
) catch return error.InvalidValue };
|
||||
}
|
||||
|
||||
pub fn enabled(self: BackgroundBlur) bool {
|
||||
return switch (self) {
|
||||
.false => false,
|
||||
.true => true,
|
||||
.radius => |v| v > 0,
|
||||
};
|
||||
}
|
||||
|
||||
pub fn cval(self: BackgroundBlur) u8 {
|
||||
return switch (self) {
|
||||
.false => 0,
|
||||
|
||||
Reference in New Issue
Block a user