mirror of
https://github.com/labwc/labwc.git
synced 2026-04-09 08:21:18 -04:00
[alternate version] define replacement macro
This commit is contained in:
parent
7f6984d317
commit
c39244e2f8
1 changed files with 2 additions and 4 deletions
|
|
@ -23,6 +23,8 @@
|
|||
|
||||
#if WLR_HAS_DRM_BACKEND
|
||||
#include <wlr/backend/drm.h>
|
||||
#else
|
||||
#define wlr_backend_is_drm(backend) (false)
|
||||
#endif
|
||||
|
||||
static const char *const env_vars[] = {
|
||||
|
|
@ -181,7 +183,6 @@ env_dir_cleanup:
|
|||
return success;
|
||||
}
|
||||
|
||||
#if WLR_HAS_DRM_BACKEND
|
||||
static void
|
||||
backend_check_drm(struct wlr_backend *backend, void *is_drm)
|
||||
{
|
||||
|
|
@ -189,7 +190,6 @@ backend_check_drm(struct wlr_backend *backend, void *is_drm)
|
|||
*(bool *)is_drm = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool
|
||||
should_update_activation(struct server *server)
|
||||
|
|
@ -213,9 +213,7 @@ should_update_activation(struct server *server)
|
|||
|
||||
/* With no valid preference, update when a DRM backend is in use */
|
||||
bool have_drm = false;
|
||||
#if WLR_HAS_DRM_BACKEND
|
||||
wlr_multi_for_each_backend(server->backend, backend_check_drm, &have_drm);
|
||||
#endif
|
||||
return have_drm;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue