mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 18:09:44 +00:00
wayland: properly do MwLLPending and MwLLNextEvent
This commit is contained in:
@@ -972,7 +972,6 @@ static void popup_configure(void* data,
|
||||
|
||||
static void popup_done(void* data,
|
||||
struct xdg_popup* xdg_popup) {
|
||||
printf("Sdfgs\n");
|
||||
};
|
||||
|
||||
struct xdg_popup_listener popup_listener = {
|
||||
@@ -1251,10 +1250,14 @@ static void MwLLFreeColorImpl(MwLLColor color) {
|
||||
}
|
||||
|
||||
static int MwLLPendingImpl(MwLL handle) {
|
||||
return event_loop(handle);
|
||||
return handle->wayland.events_pending || wl_display_dispatch(handle->wayland.display);
|
||||
}
|
||||
|
||||
static void MwLLNextEventImpl(MwLL handle) {
|
||||
event_loop(handle);
|
||||
if(handle->wayland.events_pending) {
|
||||
handle->wayland.events_pending = MwFALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static void MwLLSetTitleImpl(MwLL handle, const char* title) {
|
||||
|
||||
Reference in New Issue
Block a user