Create popups when a view recieves an event...

This is currently incomplete and needs work to make sure that popups
stay inside their parents current output.

fixing popups, wip
This commit is contained in:
Squibid 2025-12-04 16:28:24 -05:00
parent 3203839a58
commit 814daf0f2e
Signed by: squibid
GPG key ID: BECE5684D3C4005D
4 changed files with 122 additions and 9 deletions

View file

@ -15,6 +15,7 @@ const Utils = @import("Utils.zig");
const Keymap = @import("types/Keymap.zig");
const Hook = @import("types/Hook.zig");
const Events = @import("types/Events.zig");
const Popup = @import("Popup.zig");
const gpa = std.heap.c_allocator;
const server = &@import("main.zig").server;
@ -199,11 +200,8 @@ fn handleNewXdgToplevelDecoration(
}
}
fn handleNewXdgPopup(
_: *wl.Listener(*wlr.XdgPopup),
_: *wlr.XdgPopup
) void {
std.log.err("Unimplemented handle new xdg popup", .{});
fn handleNewXdgPopup(_: *wl.Listener(*wlr.XdgPopup), xdg_popup: *wlr.XdgPopup) void {
_ = xdg_popup;
}
fn handleNewLayerSurface(