e_client: add NULL check and fix typo 78/321578/1
authorduna.oh <duna.oh@samsung.com>
Tue, 25 Mar 2025 08:13:00 +0000 (17:13 +0900)
committerduna.oh <duna.oh@samsung.com>
Tue, 25 Mar 2025 08:36:33 +0000 (17:36 +0900)
Change-Id: I130f73ae2eb5970e818e1ae4501e92846904fb52

src/bin/compmgr/e_comp.c
src/bin/core/e_client.c
src/bin/inputmgr/e_devicemgr_input.c
src/bin/server/e_comp_wl_input.c
src/bin/windowmgr/e_pointer.c

index 2f5cb7e59cb142e4455cbfad7da422ce69384f64..15f5ed348f57d68d20558d5d73a81eaccf9c5bb3 100644 (file)
@@ -943,7 +943,7 @@ e_comp_pointer_set(E_Pointer *pointer)
    EINA_SAFETY_ON_NULL_RETURN(e_comp);
    EINA_SAFETY_ON_NULL_RETURN(pointer);
 
-   if(e_comp->pointer == pointer) return;
+   if (e_comp->pointer == pointer) return;
 
    INF("Changed pointer from %s -> %s", e_comp->pointer ?  e_pointer_name_get(e_comp->pointer) : "NULL",
        e_pointer_name_get(pointer));
index 04b8801cc612036d650ac42b87ace931a34d1b1f..0ae86f968f93ff6c7c251721ffffc17f9441fb9f 100644 (file)
@@ -2135,7 +2135,7 @@ _e_client_cb_evas_restack(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA
              /* Don't stack iconic transients. If the user wants these shown,
               * that's another option.
               */
-             if (child->iconic && e_client_is_iconified_by_client(child)) continue;
+             if (child && child->iconic && e_client_is_iconified_by_client(child)) continue;
 
              transient_policy = e_client_transient_policy_get(child);
              if (transient_policy == E_TRANSIENT_ABOVE)
index e8338c3e60fb821b3ac467b2e9971f484c4d52f6..2854ace64833abec72528471069fe9630f5af120 100644 (file)
@@ -93,7 +93,7 @@ e_devicemgr_input_pointer_warp(struct wl_client *client, struct wl_resource *res
         if (!e_comp_wl_input_pointer_constraint_activated_get())
           return TIZEN_INPUT_DEVICE_MANAGER_ERROR_NO_POINTER_AVAILABLE;
         else
-          DMINF("Pointer Contstraint activated. warp allowed. show_cursor(%d)", e_config->show_cursor);
+          DMINF("Pointer Constraint activated. warp allowed. show_cursor(%d)", e_config->show_cursor);
      }
 
    new_x = wl_fixed_to_int(x);
index 97579efa6157cd2f2e70610c83362e97e97a0ac2..e4bfdc50517430cabe838b3f8a42bfb4c2e0d02e 100644 (file)
@@ -121,8 +121,10 @@ e_comp_wl_input_keyboard_enter_send(struct wl_resource *surface)
    EINA_LIST_FOREACH(e_comp_input_key->kbd.focused, l, res)
      {
         if (wl_resource_get_client(res) == wl_resource_get_client(surface))
-        wl_keyboard_send_enter(res, serial, surface,
-                               &e_comp_input_key->kbd.keys);
+          {
+             wl_keyboard_send_enter(res, serial, surface,
+                                    &e_comp_input_key->kbd.keys);
+          }
 
         wl_keyboard_send_modifiers(res, serial,
                                    mod_depressed,
index a3e206d05b9164dfd5f7e1a1edf3a5e9971f5d44..a47f1c042d2358c4aa333dabfb52786ce18c8325 100644 (file)
@@ -703,7 +703,7 @@ e_pointer_find(const char *name)
           return ptr;
      }
 
-  return NULL;
+   return NULL;
 }
 
 EINTERN const char *