This commit is contained in:
2026-01-02 22:53:34 +07:00
commit a12293fd3a
22 changed files with 915 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#include <stdlib.h>
#include <wayland-server-core.h>
#include "types.h"
void xdg_popup_commit(struct wl_listener *listener, void *data)
{
struct absinthe_popup *popup = wl_container_of(listener, popup, commit);
if (popup->xdg_popup->base->initial_commit) {
wlr_xdg_surface_schedule_configure(popup->xdg_popup->base);
}
}
void xdg_popup_destroy(struct wl_listener *listener, void *data)
{
struct absinthe_popup *popup = wl_container_of(listener, popup, commit);
wl_list_remove(&popup->commit.link);
wl_list_remove(&popup->destroy.link);
free(popup);
}