aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-12-14 04:29:52 -0500
committerGitHub <noreply@github.com>2016-12-14 04:29:52 -0500
commit6c0fc2093641868df28c4087902a040f7fae05d4 (patch)
tree32ae4d5fe4d13fe6a4bdeb83b7f6a762a2274c9b
parent6350752d6be2abfac68aa16e891dd859aa5cdafa (diff)
parentdc6942d10df82402392ba6e4cd096a293acdd9fb (diff)
Merge pull request #991 from barfoo1/registry_fix
minor logic error in registry.c:seat_handle_capabilities()
-rw-r--r--wayland/registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland/registry.c b/wayland/registry.c
index 44afb146..43e41f0c 100644
--- a/wayland/registry.c
+++ b/wayland/registry.c
@@ -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);