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:
@ -155,8 +155,5 @@ fn getView(seat: *Seat) ?*View {
|
||||
// Do not touch fullscreen views
|
||||
if (view.pending.fullscreen) return null;
|
||||
|
||||
// Do not touch views which are the target of a cursor action
|
||||
if (server.input_manager.isCursorActionTarget(view)) return null;
|
||||
|
||||
return view;
|
||||
}
|
||||
|
@ -44,9 +44,6 @@ pub fn toggleFloat(
|
||||
// Don't float fullscreen views
|
||||
if (view.pending.fullscreen) return;
|
||||
|
||||
// Don't modify views which are the target of a cursor action
|
||||
if (server.input_manager.isCursorActionTarget(view)) return;
|
||||
|
||||
view.pending.float = !view.pending.float;
|
||||
view.applyPending();
|
||||
}
|
||||
|
@ -35,9 +35,6 @@ pub fn toggleFullscreen(
|
||||
if (seat.focused == .view) {
|
||||
const view = seat.focused.view;
|
||||
|
||||
// Don't modify views which are the target of a cursor action
|
||||
if (server.input_manager.isCursorActionTarget(view)) return;
|
||||
|
||||
view.pending.fullscreen = !view.pending.fullscreen;
|
||||
view.applyPending();
|
||||
}
|
||||
|
Reference in New Issue
Block a user