forked from pyrite-dev/milsko
wayland: properly do MwLLPending and MwLLNextEvent
This commit is contained in:
parent
6123fd1304
commit
a384add9e9
1 changed files with 5 additions and 2 deletions
|
|
@ -972,7 +972,6 @@ static void popup_configure(void* data,
|
||||||
|
|
||||||
static void popup_done(void* data,
|
static void popup_done(void* data,
|
||||||
struct xdg_popup* xdg_popup) {
|
struct xdg_popup* xdg_popup) {
|
||||||
printf("Sdfgs\n");
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct xdg_popup_listener popup_listener = {
|
struct xdg_popup_listener popup_listener = {
|
||||||
|
|
@ -1251,10 +1250,14 @@ static void MwLLFreeColorImpl(MwLLColor color) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int MwLLPendingImpl(MwLL handle) {
|
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) {
|
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) {
|
static void MwLLSetTitleImpl(MwLL handle, const char* title) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue