mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
pointer: use enum wl_pointer_button_state
This commit is contained in:
parent
9f4cf242d9
commit
812451cd8f
8 changed files with 21 additions and 21 deletions
|
|
@ -144,7 +144,7 @@ static void handle_cursor_button(struct wl_listener *listener, void *data) {
|
|||
struct wlr_pointer_button_event *event = data;
|
||||
|
||||
float (*color)[4];
|
||||
if (event->state == WLR_BUTTON_RELEASED) {
|
||||
if (event->state == WL_POINTER_BUTTON_STATE_RELEASED) {
|
||||
color = &sample->default_color;
|
||||
memcpy(&sample->clear_color, color, sizeof(*color));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue