backend/drm: add wlr_drm_connector_state.nonblock

Instead of having this condition checked in multiple places,
centralize it so that they don't go out-of-sync.
This commit is contained in:
Simon Ser 2023-11-19 15:16:20 +01:00
parent f47b6e3fce
commit 8c44e86077
4 changed files with 22 additions and 22 deletions

View file

@ -126,6 +126,7 @@ struct wlr_drm_mode {
struct wlr_drm_connector_state {
const struct wlr_output_state *base;
bool modeset;
bool nonblock;
bool active;
drmModeModeInfo mode;
struct wlr_drm_fb *primary_fb;