mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-20 06:47:19 -04:00
output: add cursor output layers
This commit is contained in:
parent
2bd5879950
commit
a863b82bdb
2 changed files with 8 additions and 0 deletions
|
|
@ -270,6 +270,10 @@ static bool test_layer(struct wlr_wl_output *output, struct wlr_output_layer_sta
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (layer_state->layer->cursor) {
|
||||||
|
return false; // TODO: add support for cursor layers
|
||||||
|
}
|
||||||
|
|
||||||
int x = layer_state->dst_box.x;
|
int x = layer_state->dst_box.x;
|
||||||
int y = layer_state->dst_box.y;
|
int y = layer_state->dst_box.y;
|
||||||
int width = layer_state->dst_box.width;
|
int width = layer_state->dst_box.width;
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
struct wlr_output_layer {
|
struct wlr_output_layer {
|
||||||
struct wl_list link; // wlr_output.layers
|
struct wl_list link; // wlr_output.layers
|
||||||
struct wlr_addon_set addons;
|
struct wlr_addon_set addons;
|
||||||
|
bool cursor;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
struct wl_signal feedback; // struct wlr_output_layer_feedback_event
|
struct wl_signal feedback; // struct wlr_output_layer_feedback_event
|
||||||
|
|
@ -71,6 +72,9 @@ struct wlr_output_layer_state {
|
||||||
// Damaged region since last commit in buffer-local coordinates. Leave NULL
|
// Damaged region since last commit in buffer-local coordinates. Leave NULL
|
||||||
// to damage the whole buffer.
|
// to damage the whole buffer.
|
||||||
const pixman_region32_t *damage;
|
const pixman_region32_t *damage;
|
||||||
|
struct {
|
||||||
|
int x, y;
|
||||||
|
} cursor_hotspot;
|
||||||
|
|
||||||
// Populated by the backend after wlr_output_test() and wlr_output_commit(),
|
// Populated by the backend after wlr_output_test() and wlr_output_commit(),
|
||||||
// indicates whether the backend has acknowledged and will take care of
|
// indicates whether the backend has acknowledged and will take care of
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue