mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-08 04:57:32 -04: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 FocusDataType = enum { view, popup, layer_surface };
|
||||
pub const FocusData = union(FocusDataType) {
|
||||
pub const FocusData = union(enum) {
|
||||
view: *View,
|
||||
popup: *Popup,
|
||||
layer_surface: *LayerSurface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue