Seat: fix potential assertion failure
This commit is contained in:
parent
684f26acac
commit
29976e5741
@ -160,7 +160,9 @@ pub fn focus(self: *Self, _target: ?*View) void {
|
||||
}
|
||||
|
||||
if (target) |view| {
|
||||
if (view.pending.tags & view.pending.output.?.pending.tags == 0) {
|
||||
if (view.pending.output == null or
|
||||
view.pending.tags & view.pending.output.?.pending.tags == 0)
|
||||
{
|
||||
// If the view is not currently visible, behave as if null was passed
|
||||
target = null;
|
||||
} else if (view.pending.output.? != self.focused_output.?) {
|
||||
|
Loading…
Reference in New Issue
Block a user