render: fix damage tracking of drag icons

This commit is contained in:
Isaac Freund
2021-06-07 18:34:54 +00:00
parent 0e9dc089d1
commit cef6d5a0be
3 changed files with 68 additions and 7 deletions

View File

@ -54,10 +54,12 @@ pub fn create(wlr_xdg_popup: *wlr.XdgPopup, parent: Parent) void {
const parent_box = switch (parent) {
.view => |view| &view.pending.box,
.layer_surface => |layer_surface| &layer_surface.box,
.drag_icon => unreachable,
};
const output_dimensions = switch (parent) {
.view => |view| view.output.getEffectiveResolution(),
.layer_surface => |layer_surface| layer_surface.output.getEffectiveResolution(),
.drag_icon => unreachable,
};
// The output box relative to the parent of the popup