git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit6bb6d4bbb012fc8e9715d53631454748aa9a5c6d
parent90996f5808
authorIsaac Freund <[email protected]>
date2024-12-22 14:29
InputManager: remove dead code

 river/InputManager.zig | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/river/InputManager.zig b/river/InputManager.zig
index 6368c63..4ec86d3 100644
--- a/river/InputManager.zig
+++ b/river/InputManager.zig
@@ -60,8 +60,6 @@ configs: std.ArrayList(InputConfig),
 devices: wl.list.Head(InputDevice, .link),
 seats: std.TailQueue(Seat) = .{},
 
-exclusive_client: ?*wl.Client = null,
-
 new_virtual_pointer: wl.Listener(*wlr.VirtualPointerManagerV1.event.NewPointer) =
     wl.Listener(*wlr.VirtualPointerManagerV1.event.NewPointer).init(handleNewVirtualPointer),
 new_virtual_keyboard: wl.Listener(*wlr.VirtualKeyboardV1) =
@@ -136,14 +134,6 @@ pub fn defaultSeat(input_manager: InputManager) *Seat {
     return &input_manager.seats.first.?.data;
 }
 
-/// Returns true if input is currently allowed on the passed surface.
-pub fn inputAllowed(input_manager: InputManager, wlr_surface: *wlr.Surface) bool {
-    return if (input_manager.exclusive_client) |exclusive_client|
-        exclusive_client == wlr_surface.resource.getClient()
-    else
-        true;
-}
-
 /// Reconfigures all devices' libinput configuration as well as their output mapping.
 /// This is called on outputs being added or removed and on the input configuration being changed.
 pub fn reconfigureDevices(input_manager: *InputManager) void {