input: Fix minor issue while reporting disable cursor 89/28389/1 needlefish
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 28 Dec 2022 15:59:36 +0000 (17:59 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 19 Jan 2023 09:18:57 +0000 (11:18 +0200)
We actually reported the cursor being disabled when it fact it was not.

Bug-AGL: SPEC-4658
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I81ee23e4ef2621c96344ce526a7b53d235d325e3
(cherry picked from commit 0907e87f1576f8ad70657d00d720b4f6ead8aed8)

src/input.c

index 1a143ce..cd64246 100644 (file)
@@ -177,8 +177,8 @@ ivi_shell_handle_seat_created(struct wl_listener *listener, void *data)
        struct ivi_compositor *ivi =
                container_of(listener, struct ivi_compositor, seat_created_listener);
 
-       weston_log("Cursor is %s\n", ivi->hide_cursor ? "set" : "not set");
-       ivi_shell_seat_create(seat, ivi->hide_cursor);
+       weston_log("Cursor is %s\n", ivi->disable_cursor ? "disabled" : "not disabled");
+       ivi_shell_seat_create(seat, ivi->disable_cursor);
 }
 
 /*
@@ -203,9 +203,9 @@ ivi_seat_init(struct ivi_compositor *ivi)
        struct weston_seat *seat;
 
        wl_list_for_each(seat, &ec->seat_list, link) {
-               weston_log("Seat %p, cursor is %s\n", seat, ivi->hide_cursor ?
-                               "set" : "not set");
-               ivi_shell_seat_create(seat, ivi->hide_cursor);
+               weston_log("Seat %p, cursor is %s\n", seat, ivi->disable_cursor ?
+                               "not disabled" : "disabled");
+               ivi_shell_seat_create(seat, ivi->disable_cursor);
        }
 
        ivi->seat_created_listener.notify = ivi_shell_handle_seat_created;