diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2023-03-04 20:52:26 +0100 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2023-03-04 20:58:02 +0100 |
| commit | ea4e589fdcb78f99f7e7cbc041287b9dd42e01d0 (patch) | |
| tree | 59e733c0312d11b4805539c372f6b2e890994c35 | |
| parent | f5f9b526a06b2c395a4ed36e2481603f461562c8 (diff) | |
| download | river-ea4e589fdcb78f99f7e7cbc041287b9dd42e01d0.tar.gz river-ea4e589fdcb78f99f7e7cbc041287b9dd42e01d0.tar.xz | |
river: clean up some uneeded TODOs
| -rw-r--r-- | river/Cursor.zig | 1 | ||||
| -rw-r--r-- | river/InputConfig.zig | 5 | ||||
| -rw-r--r-- | river/Root.zig | 2 | ||||
| -rw-r--r-- | river/XwaylandView.zig | 1 |
4 files changed, 0 insertions, 9 deletions
diff --git a/river/Cursor.zig b/river/Cursor.zig index 1f62fa2..82768ec 100644 --- a/river/Cursor.zig +++ b/river/Cursor.zig @@ -224,7 +224,6 @@ pub fn init(self: *Self, seat: *Seat) !void { wlr_cursor.events.pinch_end.add(&self.pinch_end); seat.wlr_seat.events.request_set_cursor.add(&self.request_set_cursor); - // TODO(wlroots) handle the cancel event, blocked on wlroots 0.16.0 wlr_cursor.events.touch_up.add(&self.touch_up); wlr_cursor.events.touch_down.add(&self.touch_down); wlr_cursor.events.touch_motion.add(&self.touch_motion); diff --git a/river/InputConfig.zig b/river/InputConfig.zig index 13432d4..9be00ae 100644 --- a/river/InputConfig.zig +++ b/river/InputConfig.zig @@ -29,11 +29,6 @@ const util = @import("util.zig"); const InputDevice = @import("InputDevice.zig"); -// TODO - keyboards -// - mapping to output / region -// - calibration matrices -// - scroll factor - pub const EventState = enum { enabled, disabled, diff --git a/river/Root.zig b/river/Root.zig index 49aa9db..cbbfd21 100644 --- a/river/Root.zig +++ b/river/Root.zig @@ -740,8 +740,6 @@ fn processOutputConfig( } fn currentOutputConfig(self: *Self) !*wlr.OutputConfigurationV1 { - // TODO there no real reason this needs to allocate memory every time it is called. - // consider improving this wlroots api or reimplementing in zig-wlroots/river. const config = try wlr.OutputConfigurationV1.create(); // this destroys all associated config heads as well errdefer config.destroy(); diff --git a/river/XwaylandView.zig b/river/XwaylandView.zig index b715abd..3b1b83a 100644 --- a/river/XwaylandView.zig +++ b/river/XwaylandView.zig @@ -115,7 +115,6 @@ pub fn configure(self: Self) bool { } pub fn rootSurface(self: Self) *wlr.Surface { - // TODO This is probably not OK, understand when xwayland surfaces can be null. return self.xwayland_surface.surface.?; } |
