35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
#include <wayland-server-core.h>
|
|
#include <wlr/types/wlr_scene.h>
|
|
#include <wlr/backend/session.h>
|
|
#include "../../screen.h"
|
|
#include "wl_types.h"
|
|
|
|
|
|
void wl_event_flush(void)
|
|
{
|
|
wl_xdisplay_flush();
|
|
/* Commit the scene so intermediate animation frames are visible */
|
|
if (wl_state.scene_output && wl_state.allocator &&
|
|
(!wl_state.session || wl_state.session->active)) {
|
|
wlr_scene_output_commit(wl_state.scene_output, NULL);
|
|
wl_display_flush_clients(wl_state.display);
|
|
}
|
|
}
|
|
void wl_event_flush_expose(void) {}
|
|
void wl_event_sync(int discard)
|
|
{
|
|
wl_xdisplay_sync(discard);
|
|
}
|
|
int wl_event_pending(void) { return 0; }
|
|
void wl_event_drain_motion(void) {}
|
|
void wl_event_discard_enter_leave_until(unsigned long timestamp) { (void)timestamp; }
|
|
void wl_event_handle_extensions(WMEvent *event) { (void)event; }
|
|
void wl_event_randr_update(WMEvent *event) { (void)event; }
|
|
void wl_event_handle_signal_exit(void)
|
|
{
|
|
wm_backend->event_loop_terminate();
|
|
}
|