summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-12-14 04:29:52 -0500
committerLibravatar GitHub <noreply@github.com>2016-12-14 04:29:52 -0500
commit6c0fc2093641868df28c4087902a040f7fae05d4 (patch)
tree32ae4d5fe4d13fe6a4bdeb83b7f6a762a2274c9b
parentMerge pull request #985 from myfreeweb/master (diff)
parentminor logic error (diff)
downloadsway-6c0fc2093641868df28c4087902a040f7fae05d4.tar.gz
sway-6c0fc2093641868df28c4087902a040f7fae05d4.tar.zst
sway-6c0fc2093641868df28c4087902a040f7fae05d4.zip
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,
182 enum wl_seat_capability caps) { 182 enum wl_seat_capability caps) {
183 struct registry *reg = data; 183 struct registry *reg = data;
184 184
185 if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->pointer) { 185 if ((caps & WL_SEAT_CAPABILITY_POINTER) && !reg->pointer) {
186 reg->pointer = wl_seat_get_pointer(reg->seat); 186 reg->pointer = wl_seat_get_pointer(reg->seat);
187 } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && reg->pointer) { 187 } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && reg->pointer) {
188 wl_pointer_destroy(reg->pointer); 188 wl_pointer_destroy(reg->pointer);