cursor: refactor mode handling

This commit is contained in:
Isaac Freund
2020-08-07 11:51:53 +02:00
parent 96a91fd2f7
commit 91052f7477
2 changed files with 158 additions and 195 deletions

View File

@ -108,7 +108,7 @@ pub fn isCursorActionTarget(self: Self, view: *View) bool {
const seat = &node.data;
switch (seat.cursor.mode) {
.passthrough => {},
.move => |data| if (data.view == view) break true,
.move => |target_view| if (target_view == view) break true,
.resize => |data| if (data.view == view) break true,
}
} else false;