summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2014-10-03 13:13:42 -0500
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-11-04 12:45:49 +0200
commit280e7dd918f1717c7d677676384a9cd991097741 (patch)
treef1393e7083615b2ba1f5dc2e24384722def823ae /src/input.c
parent4c582666dda2f824757c6a3f8019a9c830b4b7de (diff)
downloadweston-280e7dd918f1717c7d677676384a9cd991097741.tar.gz
cosmetic: replace boolean function return values with bool
For functions that test if something is true/valid and return a 1 or 0, it makes sense to switch to bool. Reviewed-by: Bryce Harrington <b.harrington@samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input.c b/src/input.c
index 1c71b2c3..b504d068 100644
--- a/src/input.c
+++ b/src/input.c
@@ -1732,7 +1732,7 @@ static const struct wl_keyboard_interface keyboard_interface = {
keyboard_release
};
-static int
+static bool
should_send_modifiers_to_client(struct weston_seat *seat,
struct wl_client *client)
{
@@ -1740,15 +1740,15 @@ should_send_modifiers_to_client(struct weston_seat *seat,
seat->keyboard->focus &&
seat->keyboard->focus->resource &&
wl_resource_get_client(seat->keyboard->focus->resource) == client)
- return 1;
+ return true;
if (seat->pointer &&
seat->pointer->focus &&
seat->pointer->focus->surface->resource &&
wl_resource_get_client(seat->pointer->focus->surface->resource) == client)
- return 1;
+ return true;
- return 0;
+ return false;
}
static void