cursor: implement implicit grabs
When a button is held down and the cursor leaves a surface, events now continue to be sent to the client. This allows e.g. dragging a scroll bar from outside the surface.
This commit is contained in:
@ -108,6 +108,7 @@ pub fn isCursorActionTarget(self: Self, view: *View) bool {
|
||||
const seat = &node.data;
|
||||
switch (seat.cursor.mode) {
|
||||
.passthrough => {},
|
||||
.down => |target_view| if (target_view == view) break true,
|
||||
.move => |target_view| if (target_view == view) break true,
|
||||
.resize => |data| if (data.view == view) break true,
|
||||
}
|
||||
|
Reference in New Issue
Block a user