linux-dmabuf: disable per-surface feedback
It seems like the wlr_scene implementation of sending per-surface feedback is a bit too spammy and can lead to resource exhaustion in clients in at least some reported cases.
This commit is contained in:
parent
0605ce507e
commit
12e6833f31
@ -120,8 +120,6 @@ pub fn init(self: *Self) !void {
|
|||||||
const scene = try wlr.Scene.create();
|
const scene = try wlr.Scene.create();
|
||||||
errdefer scene.tree.node.destroy();
|
errdefer scene.tree.node.destroy();
|
||||||
|
|
||||||
scene.setLinuxDmabufV1(server.linux_dmabuf);
|
|
||||||
|
|
||||||
const interactive_content = try scene.tree.createSceneTree();
|
const interactive_content = try scene.tree.createSceneTree();
|
||||||
const drag_icons = try scene.tree.createSceneTree();
|
const drag_icons = try scene.tree.createSceneTree();
|
||||||
const hidden_tree = try scene.tree.createSceneTree();
|
const hidden_tree = try scene.tree.createSceneTree();
|
||||||
|
@ -52,7 +52,6 @@ backend: *wlr.Backend,
|
|||||||
session: ?*wlr.Session,
|
session: ?*wlr.Session,
|
||||||
|
|
||||||
renderer: *wlr.Renderer,
|
renderer: *wlr.Renderer,
|
||||||
linux_dmabuf: *wlr.LinuxDmabufV1,
|
|
||||||
allocator: *wlr.Allocator,
|
allocator: *wlr.Allocator,
|
||||||
|
|
||||||
xdg_shell: *wlr.XdgShell,
|
xdg_shell: *wlr.XdgShell,
|
||||||
@ -108,7 +107,7 @@ pub fn init(self: *Self, runtime_xwayland: bool) !void {
|
|||||||
// TODO remove wl_drm support
|
// TODO remove wl_drm support
|
||||||
_ = try wlr.Drm.create(self.wl_server, self.renderer);
|
_ = try wlr.Drm.create(self.wl_server, self.renderer);
|
||||||
|
|
||||||
self.linux_dmabuf = try wlr.LinuxDmabufV1.createWithRenderer(self.wl_server, 4, self.renderer);
|
_ = try wlr.LinuxDmabufV1.createWithRenderer(self.wl_server, 4, self.renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.allocator = try wlr.Allocator.autocreate(self.backend, self.renderer);
|
self.allocator = try wlr.Allocator.autocreate(self.backend, self.renderer);
|
||||||
|
Loading…
Reference in New Issue
Block a user