int x, y, w, h;
int border;
int depth;
- unsigned char visible : 1;
- unsigned char viewable : 1;
- unsigned char override : 1;
- unsigned char input_only : 1;
- unsigned char save_under : 1;
+ Eina_Bool visible : 1;
+ Eina_Bool viewable : 1;
+ Eina_Bool override : 1;
+ Eina_Bool input_only : 1;
+ Eina_Bool save_under : 1;
struct
- {
- Ecore_X_Event_Mask mine;
- Ecore_X_Event_Mask all;
- Ecore_X_Event_Mask no_propagate;
- } event_mask;
+ {
+ Ecore_X_Event_Mask mine;
+ Ecore_X_Event_Mask all;
+ Ecore_X_Event_Mask no_propagate;
+ } event_mask;
Ecore_X_Gravity window_gravity;
Ecore_X_Gravity pixel_gravity;
Ecore_X_Colormap colormap;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
cookie = xcb_get_window_attributes_unchecked(_ecore_xcb_conn, win);
- gcookie = xcb_get_geometry_unchecked(_ecore_xcb_conn, win);
-
reply = xcb_get_window_attributes_reply(_ecore_xcb_conn, cookie, NULL);
if (!reply) return EINA_FALSE;
memset(att_ret, 0, sizeof(Ecore_X_Window_Attributes));
if (reply->map_state != XCB_MAP_STATE_UNMAPPED)
- att_ret->visible = 1;
+ att_ret->visible = EINA_TRUE;
if (reply->map_state == XCB_MAP_STATE_VIEWABLE)
- att_ret->viewable = 1;
- if (reply->override_redirect) att_ret->override = 1;
+ att_ret->viewable = EINA_TRUE;
+ if (reply->override_redirect) att_ret->override = EINA_TRUE;
if (reply->_class == XCB_WINDOW_CLASS_INPUT_ONLY)
- att_ret->input_only = 1;
- if (reply->save_under) att_ret->save_under = 1;
+ att_ret->input_only = EINA_TRUE;
+ if (reply->save_under) att_ret->save_under = EINA_TRUE;
att_ret->event_mask.mine = reply->your_event_mask;
att_ret->event_mask.all = reply->all_event_masks;
att_ret->event_mask.no_propagate = reply->do_not_propagate_mask;
free(reply);
+ gcookie = xcb_get_geometry_unchecked(_ecore_xcb_conn, win);
greply = xcb_get_geometry_reply(_ecore_xcb_conn, gcookie, NULL);
if (!greply) return EINA_TRUE;