forked from enlightenment/enlightenment
e hints - put in some casts to silence earnings - enums are same vals
This commit is contained in:
parent
72a2f7e8aa
commit
ea75a4384d
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue