mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xwayland: Add xwl_window_create_frame_callback helper
This will be used by the following changes. No functional change
intended.
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
(cherry picked from commit f80eea0529)
This commit is contained in:
committed by
Michel Dänzer
parent
94dad4f051
commit
915cc10776
@@ -747,6 +747,14 @@ static const struct wl_callback_listener frame_listener = {
|
||||
frame_callback
|
||||
};
|
||||
|
||||
void
|
||||
xwl_window_create_frame_callback(struct xwl_window *xwl_window)
|
||||
{
|
||||
xwl_window->frame_callback = wl_surface_frame(xwl_window->surface);
|
||||
wl_callback_add_listener(xwl_window->frame_callback, &frame_listener,
|
||||
xwl_window);
|
||||
}
|
||||
|
||||
static Bool
|
||||
xwl_destroy_window(WindowPtr window)
|
||||
{
|
||||
@@ -817,9 +825,7 @@ xwl_window_post_damage(struct xwl_window *xwl_window)
|
||||
box->x2 - box->x1, box->y2 - box->y1);
|
||||
}
|
||||
|
||||
xwl_window->frame_callback = wl_surface_frame(xwl_window->surface);
|
||||
wl_callback_add_listener(xwl_window->frame_callback, &frame_listener, xwl_window);
|
||||
|
||||
xwl_window_create_frame_callback(xwl_window);
|
||||
DamageEmpty(window_get_damage(xwl_window->window));
|
||||
}
|
||||
|
||||
|
||||
@@ -378,6 +378,8 @@ struct xwl_output {
|
||||
Bool xdg_output_done;
|
||||
};
|
||||
|
||||
void xwl_window_create_frame_callback(struct xwl_window *xwl_window);
|
||||
|
||||
void xwl_sync_events (struct xwl_screen *xwl_screen);
|
||||
|
||||
Bool xwl_screen_init_cursor(struct xwl_screen *xwl_screen);
|
||||
|
||||
Reference in New Issue
Block a user