e hints - put in some casts to silence earnings - enums are same vals

This commit is contained in:
Carsten Haitzler 2020-01-15 16:42:23 +01:00
parent 72a2f7e8aa
commit ea75a4384d
1 changed files with 5 additions and 4 deletions

View File

@ -674,7 +674,8 @@ e_hints_window_type_set(E_Client *ec)
(void)ec; (void)ec;
#else #else
if (!e_client_has_xwindow(ec)) return; 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 #endif
} }
@ -700,12 +701,12 @@ e_hints_window_type_get(E_Client *ec)
else else
{ {
j = 0; j = 0;
ec->netwm.type = types[j]; ec->netwm.type = (E_Window_Type)types[j];
j++; j++;
while ((j < num) && while ((j < num) &&
(ec->netwm.type == E_WINDOW_TYPE_UNKNOWN)) (ec->netwm.type == E_WINDOW_TYPE_UNKNOWN))
{ {
ec->netwm.type = types[j]; ec->netwm.type = (E_Window_Type)types[j];
j++; j++;
} }
if (num > j) if (num > j)
@ -715,7 +716,7 @@ e_hints_window_type_get(E_Client *ec)
if (ec->netwm.extra_types) if (ec->netwm.extra_types)
{ {
for (i = j, k = 0; i < num; i++, k++) 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; ec->netwm.extra_types_num = num - j;
} }
} }