summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar barfoo1 <franz.hose1234@web.de>2016-12-14 10:24:13 +0100
committerLibravatar GitHub <noreply@github.com>2016-12-14 10:24:13 +0100
commitdc6942d10df82402392ba6e4cd096a293acdd9fb (patch)
tree32ae4d5fe4d13fe6a4bdeb83b7f6a762a2274c9b
parentMerge pull request #985 from myfreeweb/master (diff)
downloadsway-dc6942d10df82402392ba6e4cd096a293acdd9fb.tar.gz
sway-dc6942d10df82402392ba6e4cd096a293acdd9fb.tar.zst
sway-dc6942d10df82402392ba6e4cd096a293acdd9fb.zip
minor logic error
-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);