XdgPopup: reimplement using the scene graph

xdg-shell version 3 is now implemented, supporting popup repositioning.
This commit is contained in:
Isaac Freund
2023-02-12 18:56:57 +01:00
parent dbcb75dddb
commit 879b880a6a
7 changed files with 185 additions and 10 deletions

View File

@ -241,8 +241,12 @@ pub fn setFocusRaw(self: *Self, new_focus: FocusTarget) void {
.view => |view| {
view.pending.focus -= 1;
if (view.pending.focus == 0) view.setActivated(false);
view.destroyPopups();
},
.xwayland_override_redirect, .layer, .lock_surface, .none => {},
.layer => |layer_surface| {
layer_surface.destroyPopups();
},
.xwayland_override_redirect, .lock_surface, .none => {},
}
// Set the new focus