aboutsummaryrefslogtreecommitdiff
path: root/src/cursor.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-03-25 15:59:24 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-03-25 15:59:24 +0100
commit34e47360f5f8412d950eab788acc60073f86b0b3 (patch)
tree455b53b800578bd5856b74e7c3e63bb9c8b6f625 /src/cursor.zig
parenta3eb33a7b1394e7eae45950e0e59c471ee1475fb (diff)
downloadriver-34e47360f5f8412d950eab788acc60073f86b0b3.tar.gz
river-34e47360f5f8412d950eab788acc60073f86b0b3.tar.xz
Add Root struct
Server handles listening for wayland signals. It delegates input handling to Seat and output handling to Root.
Diffstat (limited to 'src/cursor.zig')
-rw-r--r--src/cursor.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cursor.zig b/src/cursor.zig
index 390328f..5b408b2 100644
--- a/src/cursor.zig
+++ b/src/cursor.zig
@@ -89,7 +89,7 @@ pub const Cursor = struct {
.resize_edges = 0,
};
- c.wlr_cursor_attach_output_layout(cursor.wlr_cursor, seat.server.wlr_output_layout);
+ c.wlr_cursor_attach_output_layout(cursor.wlr_cursor, seat.server.root.wlr_output_layout);
_ = c.wlr_xcursor_manager_load(cursor.wlr_xcursor_manager, 1);
return cursor;
@@ -184,7 +184,7 @@ pub const Cursor = struct {
var sx: f64 = undefined;
var sy: f64 = undefined;
var opt_surface: ?*c.wlr_surface = null;
- const view = self.seat.server.desktop_view_at(
+ const view = self.seat.server.root.viewAt(
self.wlr_cursor.x,
self.wlr_cursor.y,
&opt_surface,
@@ -278,7 +278,7 @@ pub const Cursor = struct {
var sy: f64 = undefined;
var surface: ?*c.wlr_surface = null;
- const view = cursor.seat.server.desktop_view_at(
+ const view = cursor.seat.server.root.viewAt(
cursor.wlr_cursor.x,
cursor.wlr_cursor.y,
&surface,