diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-23 17:27:18 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-23 17:27:18 +0200 |
| commit | 56400a5955603b8760a27f49ac4b33bcaa86b73c (patch) | |
| tree | b7059dac75f9a908bf479fe489fbc0d5835328f0 /src/seat.zig | |
| parent | 0452f9ec23a847a624ed4f25098bdd94b2e2038c (diff) | |
| download | river-56400a5955603b8760a27f49ac4b33bcaa86b73c.tar.gz river-56400a5955603b8760a27f49ac4b33bcaa86b73c.tar.xz | |
Fix crash on non-toplevel views
Diffstat (limited to 'src/seat.zig')
| -rw-r--r-- | src/seat.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/seat.zig b/src/seat.zig index 9d13257..19d61fb 100644 --- a/src/seat.zig +++ b/src/seat.zig @@ -159,7 +159,7 @@ pub const Seat = struct { // First clear the current focus if (self.focused_view) |current_focus| { std.debug.assert(self.focused_layer == null); - current_focus.setActivated(false); + current_focus.setFocused(false); self.focused_view = null; } if (self.focused_layer) |current_focus| { @@ -172,7 +172,7 @@ pub const Seat = struct { switch (focus_target) { .view => |target_view| { std.debug.assert(self.focused_output == target_view.output); - target_view.setActivated(true); + target_view.setFocused(true); self.focused_view = target_view; }, .layer => |target_layer| blk: { |
