Merge pull request #96811 from Riteo/wl-button-clear

Wayland: Clear button mask on pointer leave
This commit is contained in:
Rémi Verschelde 2024-09-11 12:35:17 +02:00
commit 292caed7d3
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1395,6 +1395,8 @@ void WaylandThread::_wl_pointer_on_leave(void *data, struct wl_pointer *wl_point
ss->pointed_surface = nullptr;
ss->pointer_data_buffer.pressed_button_mask.clear();
Ref<WindowEventMessage> msg;
msg.instantiate();
msg->event = DisplayServer::WINDOW_EVENT_MOUSE_EXIT;