session-lock-v1: drop negative buffer size checks

The buffer size will never be negative, and the negative checks
are distracting from the real checks here.
master
Simon Ser 11 months ago
parent dc3b2b9439
commit aa32d1a127

@ -170,8 +170,7 @@ static void lock_surface_role_commit(struct wlr_surface *surface) {
return; return;
} }
if (surface->current.width < 0 || surface->current.height < 0 || if ((uint32_t)surface->current.width != lock_surface->pending.width ||
(uint32_t)surface->current.width != lock_surface->pending.width ||
(uint32_t)surface->current.height != lock_surface->pending.height) { (uint32_t)surface->current.height != lock_surface->pending.height) {
wl_resource_post_error(lock_surface->resource, wl_resource_post_error(lock_surface->resource,
EXT_SESSION_LOCK_SURFACE_V1_ERROR_DIMENSIONS_MISMATCH, EXT_SESSION_LOCK_SURFACE_V1_ERROR_DIMENSIONS_MISMATCH,

Loading…
Cancel
Save