summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2014-12-05 15:38:39 -0600
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-12-15 17:30:34 +0200
commitd09dbb35f0f2c400023452ebf6a6f32c7c4edd5a (patch)
tree2886a3a7f227655668b803355208636c7b634e59 /src
parentb1c32f616e97c5846cd37d37a4bb27547f80cf7c (diff)
downloadweston-d09dbb35f0f2c400023452ebf6a6f32c7c4edd5a.tar.gz
text: Use bool for input_panel_visible
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/text-backend.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/text-backend.c b/src/text-backend.c
index e274f0ba..e50569a9 100644
--- a/src/text-backend.c
+++ b/src/text-backend.c
@@ -23,6 +23,7 @@
#include "config.h"
+#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -47,7 +48,7 @@ struct text_input {
pixman_box32_t cursor_rectangle;
- uint32_t input_panel_visible;
+ bool input_panel_visible;
};
struct text_input_manager {
@@ -300,7 +301,7 @@ text_input_show_input_panel(struct wl_client *client,
struct text_input *text_input = wl_resource_get_user_data(resource);
struct weston_compositor *ec = text_input->ec;
- text_input->input_panel_visible = 1;
+ text_input->input_panel_visible = true;
if (!wl_list_empty(&text_input->input_methods)) {
wl_signal_emit(&ec->show_input_panel_signal, text_input->surface);
@@ -315,7 +316,7 @@ text_input_hide_input_panel(struct wl_client *client,
struct text_input *text_input = wl_resource_get_user_data(resource);
struct weston_compositor *ec = text_input->ec;
- text_input->input_panel_visible = 0;
+ text_input->input_panel_visible = false;
if (!wl_list_empty(&text_input->input_methods))
wl_signal_emit(&ec->hide_input_panel_signal, ec);