diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-25 21:40:26 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-26 12:29:08 +0200 |
| commit | 454e2454b68841a90cb321b672adaeac8d10ed87 (patch) | |
| tree | 16f904a82df0198ac0e7129994dc773e380bd349 /src/seat.zig | |
| parent | 609eeae6f446247f2cc3219d65b25647de828cb3 (diff) | |
| download | river-454e2454b68841a90cb321b672adaeac8d10ed87.tar.gz river-454e2454b68841a90cb321b672adaeac8d10ed87.tar.xz | |
Separate View from its implementation
This is done in preperation for Xwayland support
Diffstat (limited to 'src/seat.zig')
| -rw-r--r-- | src/seat.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/seat.zig b/src/seat.zig index a60454e..030feb2 100644 --- a/src/seat.zig +++ b/src/seat.zig @@ -147,10 +147,11 @@ pub const Seat = struct { }) { return; } + // Obtain the target wlr_surface const target_wlr_surface = switch (focus_target) { - .view => |target_view| target_view.wlr_xdg_surface.surface, - .layer => |target_layer| target_layer.wlr_layer_surface.surface, + .view => |target_view| target_view.wlr_surface.?, + .layer => |target_layer| target_layer.wlr_layer_surface.surface.?, .none => null, }; |
