From ea75a4384dbe3fa7074aad09c0297a8bab1a7f8a Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 15 Jan 2020 16:42:23 +0100 Subject: [PATCH] e hints - put in some casts to silence earnings - enums are same vals --- src/bin/e_hints.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c index eabf467a7..c65a35227 100644 --- a/src/bin/e_hints.c +++ b/src/bin/e_hints.c @@ -674,7 +674,8 @@ e_hints_window_type_set(E_Client *ec) (void)ec; #else if (!e_client_has_xwindow(ec)) return; - ecore_x_netwm_window_type_set(e_client_util_win_get(ec), ec->netwm.type); + ecore_x_netwm_window_type_set(e_client_util_win_get(ec), + (Ecore_X_Window_Type)ec->netwm.type); #endif } @@ -700,12 +701,12 @@ e_hints_window_type_get(E_Client *ec) else { j = 0; - ec->netwm.type = types[j]; + ec->netwm.type = (E_Window_Type)types[j]; j++; while ((j < num) && (ec->netwm.type == E_WINDOW_TYPE_UNKNOWN)) { - ec->netwm.type = types[j]; + ec->netwm.type = (E_Window_Type)types[j]; j++; } if (num > j) @@ -715,7 +716,7 @@ e_hints_window_type_get(E_Client *ec) if (ec->netwm.extra_types) { for (i = j, k = 0; i < num; i++, k++) - ec->netwm.extra_types[k] = types[i]; + ec->netwm.extra_types[k] = (E_Window_Type)types[i]; ec->netwm.extra_types_num = num - j; } }