1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 04:33:59 +01:00

Merge pull request #991 from barfoo1/registry_fix

minor logic error in registry.c:seat_handle_capabilities()
This commit is contained in:
Drew DeVault 2016-12-14 04:29:52 -05:00 committed by GitHub
commit 6c0fc20936

@ -182,7 +182,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *seat,
enum wl_seat_capability caps) {
struct registry *reg = data;
if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->pointer) {
if ((caps & WL_SEAT_CAPABILITY_POINTER) && !reg->pointer) {
reg->pointer = wl_seat_get_pointer(reg->seat);
} else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && reg->pointer) {
wl_pointer_destroy(reg->pointer);