#else
E_Remember *rem = NULL;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ec->remember)
rem = ec->remember;
Ecore_X_Window_State state[10];
int num = 0;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ec->netwm.state.modal)
state[num++] = ECORE_X_WINDOW_STATE_MODAL;
if (ec->netwm.state.sticky)
Ecore_X_Action action[10];
int num = 0;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ec->netwm.action.move)
action[num++] = ECORE_X_ACTION_MOVE;
if (ec->netwm.action.resize)
#ifdef HAVE_WAYLAND_ONLY
(void)ec;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
ecore_x_netwm_window_type_set(e_client_util_win_get(ec), ec->netwm.type);
#endif
}
Ecore_X_Window_Type *types = NULL;
int num, i, j;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
num = ecore_x_netwm_window_types_get(e_client_util_win_get(ec), &types);
if (ec->netwm.extra_types)
{
E_API void
e_hints_window_state_update(E_Client *ec, int state, int action)
{
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
switch (state)
{
case ECORE_X_WINDOW_STATE_ICONIFIED:
unsigned int i, num;
Ecore_X_Window_State *state;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
ec->netwm.state.modal = 0;
ec->netwm.state.sticky = 0;
ec->netwm.state.maximized_v = 0;
(void)ec;
(void)action;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
switch (action)
{
case ECORE_X_ACTION_MOVE:
unsigned int i;
unsigned int num;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
ec->netwm.action.move = 0;
ec->netwm.action.resize = 0;
ec->netwm.action.minimize = 0;
#ifdef HAVE_WAYLAND_ONLY
(void)ec;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ec->icccm.state != ECORE_X_WINDOW_STATE_HINT_NORMAL)
ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_NORMAL;
ecore_x_icccm_state_set(e_client_util_win_get(ec), ECORE_X_WINDOW_STATE_HINT_NORMAL);
#ifdef HAVE_WAYLAND_ONLY
(void)ec;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ec->icccm.state != ECORE_X_WINDOW_STATE_HINT_ICONIC)
ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_ICONIC;
ecore_x_icccm_state_set(e_client_util_win_get(ec), ECORE_X_WINDOW_STATE_HINT_ICONIC);
#ifdef HAVE_WAYLAND_ONLY
(void)ec;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ec->icccm.state != ECORE_X_WINDOW_STATE_HINT_WITHDRAWN)
ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_WITHDRAWN;
ecore_x_icccm_state_set(e_client_util_win_get(ec), ECORE_X_WINDOW_STATE_HINT_WITHDRAWN);
(void)ec;
(void)on;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if ((!ec->netwm.state.shaded) && (on))
{
ec->netwm.update.state = 1;
(void)ec;
(void)dir;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
ecore_x_window_prop_card32_set(e_client_util_win_get(ec), E_ATOM_SHADE_DIRECTION, &dir, 1);
#endif
}
int ret;
E_Direction dir;
- if (!e_pixmap_is_x(ec->pixmap)) return E_DIRECTION_UP;
+ if (e_client_has_xwindow(ec)) return E_DIRECTION_UP;
ret = ecore_x_window_prop_card32_get(e_client_util_win_get(ec),
E_ATOM_SHADE_DIRECTION,
&dir, 1);
#else
unsigned int sizes[4];
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
sizes[0] = ec->x;
sizes[1] = ec->y;
sizes[2] = ec->w;
#ifdef HAVE_WAYLAND_ONLY
(void)ec;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
ecore_x_window_prop_property_del(e_client_util_win_get(ec), E_ATOM_BORDER_SIZE);
#endif
}
int ret;
unsigned int sizes[4];
- if (!e_pixmap_is_x(ec->pixmap)) return 0;
+ if (e_client_has_xwindow(ec)) return 0;
memset(sizes, 0, sizeof(sizes));
ret = ecore_x_window_prop_card32_get(e_client_util_win_get(ec), E_ATOM_BORDER_SIZE,
sizes, 4);
(void)horizontal;
(void)vertical;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if ((horizontal) && (!ec->netwm.state.maximized_h))
{
ec->netwm.update.state = 1;
(void)ec;
(void)on;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if ((!ec->netwm.state.fullscreen) && (on))
{
ec->netwm.update.state = 1;
(void)ec;
(void)on;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if ((!ec->netwm.state.sticky) && (on))
{
ec->netwm.update.state = 1;
(void)ec;
(void)stacking;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ec->netwm.state.stacking == stacking) return;
ec->netwm.update.state = 1;
ec->netwm.state.stacking = stacking;
* a calloc()'d struct and thus has to have been set to 0. hell even
* e_client.c explicitly sets it to 0 on creation of the border object.
*/
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
deskpos[0] = ec->desk->x;
deskpos[1] = ec->desk->y;
ecore_x_window_prop_card32_set(e_client_util_win_get(ec), E_ATOM_DESK, deskpos, 2);
int num = 0, i = 0;
int size = 0;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
memset(state, 0, sizeof(state));
/* ugly, but avoids possible future overflow if more states are added */
#else
unsigned int val;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ecore_x_window_prop_card32_get(e_client_util_win_get(ec), ATM__QTOPIA_SOFT_MENU, &val, 1))
ec->qtopia.soft_menu = val;
else
#else
unsigned int val;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
if (ecore_x_window_prop_card32_get(e_client_util_win_get(ec), ATM__QTOPIA_SOFT_MENUS, &val, 1))
ec->qtopia.soft_menus = val;
else
#else
Ecore_X_Atom atom = 0;
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
ec->vkbd.state = ecore_x_e_virtual_keyboard_state_get(e_client_util_win_get(ec));
if (ecore_x_window_prop_atom_get(e_client_util_win_get(ec),
ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE,
#ifdef HAVE_WAYLAND_ONLY
(void)ec;
#else
- if (!e_pixmap_is_x(ec->pixmap)) return;
+ if (e_client_has_xwindow(ec)) return;
ec->vkbd.vkbd = ecore_x_e_virtual_keyboard_get(e_client_util_win_get(ec));
#endif
}