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:
		| @ -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); | ||||
|  | ||||
| @ -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); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user