mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Don't send redundant capability updates
This commit is contained in:
parent
1a23c1425f
commit
8ab4d91380
1 changed files with 5 additions and 0 deletions
|
@ -310,6 +310,11 @@ struct wlr_seat_client *wlr_seat_client_for_wl_client(struct wlr_seat *wlr_seat,
|
||||||
|
|
||||||
void wlr_seat_set_capabilities(struct wlr_seat *wlr_seat,
|
void wlr_seat_set_capabilities(struct wlr_seat *wlr_seat,
|
||||||
uint32_t capabilities) {
|
uint32_t capabilities) {
|
||||||
|
// if the capabilities haven't changed (i.e a redundant mouse was removed),
|
||||||
|
// we don't actually have to do anything
|
||||||
|
if (capabilities == wlr_seat->capabilities) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
wlr_seat->capabilities = capabilities;
|
wlr_seat->capabilities = capabilities;
|
||||||
wlr_seat->accumulated_capabilities |= capabilities;
|
wlr_seat->accumulated_capabilities |= capabilities;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue