mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
Merge branch 'output-layers-unmapped' into 'master'
output-layers: change semantics of wlr_output_state.layers See merge request wlroots/wlroots!4195
This commit is contained in:
commit
a860e5513e
8 changed files with 121 additions and 71 deletions
|
|
@ -13,6 +13,8 @@
|
|||
#include <wlr/backend.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
|
||||
struct wlr_output_layer;
|
||||
|
||||
/**
|
||||
* Output state fields that don't require backend support. Backends can ignore
|
||||
* them without breaking the API contract.
|
||||
|
|
@ -136,4 +138,12 @@ void wlr_output_send_present(struct wlr_output *output,
|
|||
void wlr_output_send_request_state(struct wlr_output *output,
|
||||
const struct wlr_output_state *state);
|
||||
|
||||
/**
|
||||
* Check whether a layer is enabled in an output state.
|
||||
*
|
||||
* The output state must have the layers field populated.
|
||||
*/
|
||||
bool wlr_output_state_is_layer_enabled(const struct wlr_output_state *state,
|
||||
struct wlr_output_layer *layer);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue