e_comp_wl: when pointer is locked, do not hide cursor by timer 17/301317/2
authorduna.oh <duna.oh@samsung.com>
Mon, 13 Nov 2023 11:26:57 +0000 (20:26 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Tue, 14 Nov 2023 05:03:10 +0000 (05:03 +0000)
There is a bug that cursor hide timer is added, expired, and cursor gets hidden
even if pointer is locked.

Please refer to the following commit.

commit d31eaf38264b9cca65000c8f503698419cd219c5
Author: duna.oh <duna.oh@samsung.com>
Date:   Mon Nov 6 16:21:58 2023 +0900

    e_comp_wl_input: when pointer is locked, delete cursor hide timer

    When pointer is locked, no need to hide cursor by timer.

Change-Id: I971175c42b5e50f8d8ed2d5354bb55e04ae62283

src/bin/e_comp_wl.c

index 445d6cc..600a649 100644 (file)
@@ -1053,6 +1053,9 @@ _e_comp_wl_cursor_timer(void *data)
 {
    E_Client *ec = data;
 
+   ELOGF("Mouse", "Cursor hide timer expired after %d sec.", ec, e_config->cursor_timer_interval);
+   if (e_comp_wl->relative_ptr.activated) return ECORE_CALLBACK_CANCEL;
+
    e_comp_wl_cursor_hide(ec);
 
    return ECORE_CALLBACK_CANCEL;