surface: drop wlr_surface_state.buffer_resource

Instead, use wlr_surface_state.buffer only.
This commit is contained in:
Simon Ser 2021-08-11 17:34:34 +02:00 committed by Simon Zeni
parent 0978a702d7
commit ba0525c5c0
5 changed files with 16 additions and 50 deletions

View file

@ -850,7 +850,7 @@ static void xwayland_surface_role_precommit(struct wlr_surface *wlr_surface) {
}
if (wlr_surface->pending.committed & WLR_SURFACE_STATE_BUFFER &&
wlr_surface->pending.buffer_resource == NULL) {
wlr_surface->pending.buffer == NULL) {
// This is a NULL commit
if (surface->mapped) {
wlr_signal_emit_safe(&surface->events.unmap, surface);