Xwayland: eliminate unneeded user data usage

This is some dead code that is left over from before the scene graph
changes.
This commit is contained in:
Isaac Freund 2023-03-08 11:37:28 +01:00
parent 9a2e0d97d7
commit f072d19e51
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
2 changed files with 0 additions and 3 deletions

View File

@ -48,8 +48,6 @@ pub fn create(xwayland_surface: *wlr.XwaylandSurface) error{OutOfMemory}!void {
errdefer util.gpa.destroy(self);
self.* = .{ .xwayland_surface = xwayland_surface };
// This must be set to 0 for usage in View.fromWlrSurface()
xwayland_surface.data = 0;
xwayland_surface.events.request_configure.add(&self.request_configure);
xwayland_surface.events.destroy.add(&self.destroy);

View File

@ -65,7 +65,6 @@ pub fn create(xwayland_surface: *wlr.XwaylandSurface) error{OutOfMemory}!void {
const self = &view.impl.xwayland_view;
self.view = view;
xwayland_surface.data = @ptrToInt(self);
// Add listeners that are active over the view's entire lifetime
xwayland_surface.events.destroy.add(&self.destroy);