xwm: fix lists

This commit is contained in:
Tony Crisci 2017-10-24 14:37:18 -04:00
parent fa94a06fd6
commit 79e14f65e0
3 changed files with 66 additions and 22 deletions

View file

@ -25,7 +25,7 @@ struct wlr_xwayland {
struct wl_event_source *sigusr1_source;
struct wl_listener destroy_listener;
struct wlr_xwm *xwm;
struct wl_list displayable_surfaces;
struct wl_list displayable_surfaces; // wlr_xwayland_surface::displayable_link
struct {
struct wl_signal new_surface;
@ -68,7 +68,14 @@ struct wlr_xwayland_surface {
xcb_window_t window_id;
struct wlr_xwm *xwm;
uint32_t surface_id;
struct wl_list link;
struct wl_list displayable_link;
// XXX: I think this is just a list of all the surfaces
struct wl_list new_link;
struct wl_list unpaired_link;
bool displayable;
bool unpaired;
struct wlr_surface *surface;
int16_t x, y;