cursor: allow commands to override cursor operations
Now that we properly handle state changes during cursor operations, blocking these commands if the target view is the target of a cursor operation is unnecessary complexity. It is also inconsistent as we don't block changing the tags of the view.
This commit is contained in:
@ -178,13 +178,6 @@ pub fn inputAllowed(self: Self, wlr_surface: *wlr.Surface) bool {
|
||||
true;
|
||||
}
|
||||
|
||||
pub fn isCursorActionTarget(self: Self, view: *View) bool {
|
||||
var it = self.seats.first;
|
||||
return while (it) |node| : (it = node.next) {
|
||||
if (node.data.cursor.isCursorActionTarget(view)) break true;
|
||||
} else false;
|
||||
}
|
||||
|
||||
fn handleInhibitActivate(
|
||||
listener: *wl.Listener(*wlr.InputInhibitManager),
|
||||
input_inhibit_manager: *wlr.InputInhibitManager,
|
||||
|
Reference in New Issue
Block a user