mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
zig can tag unions for us
This commit is contained in:
parent
8e7423339c
commit
2e27a5807a
1 changed files with 1 additions and 2 deletions
|
|
@ -13,8 +13,7 @@ const Output = @import("Output.zig");
|
||||||
|
|
||||||
const server = &@import("main.zig").server;
|
const server = &@import("main.zig").server;
|
||||||
|
|
||||||
const FocusDataType = enum { view, popup, layer_surface };
|
pub const FocusData = union(enum) {
|
||||||
pub const FocusData = union(FocusDataType) {
|
|
||||||
view: *View,
|
view: *View,
|
||||||
popup: *Popup,
|
popup: *Popup,
|
||||||
layer_surface: *LayerSurface
|
layer_surface: *LayerSurface
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue