if (++_ecore_x_init_count != 1)
return _ecore_x_init_count;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
#ifdef LOGRT
_logrt_init();
#endif
return _ecore_x_init_count;
if (!_ecore_x_disp) return _ecore_x_init_count;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
#ifdef ENABLE_XIM
if (_ecore_x_ic)
EAPI int
ecore_x_fd_get(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ConnectionNumber(_ecore_x_disp);
}
EAPI Ecore_X_Screen*
ecore_x_default_screen_get(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return (Ecore_X_Screen*) DefaultScreenOfDisplay(_ecore_x_disp);
}
EAPI void
ecore_x_flush(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFlush(_ecore_x_disp);
}
EAPI void
ecore_x_sync(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSync(_ecore_x_disp, False);
}
Window *children_r = NULL;
unsigned int num_children = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGrabServer(_ecore_x_disp);
/* Tranverse window tree starting from root, and drag each
* before the firing squad */
EAPI void
ecore_x_kill(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XKillClient(_ecore_x_disp, win);
}
{
Screen *s;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
s = DefaultScreenOfDisplay(_ecore_x_disp);
if (s->mwidth <= 0) return 75;
return (((s->width * 254) / s->mwidth) + 5) / 10;
if (!num_ret) return NULL;
*num_ret = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
#ifdef ECORE_XPRINT
num = ScreenCount(_ecore_x_disp);
if (XpQueryExtension(_ecore_x_disp, &xp_base, &xp_err_base))
int num;
Ecore_X_Window root, *roots = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
roots = ecore_x_window_root_list(&num);
- if(!(roots)) return 0;
+ if (!(roots)) return 0;
if (num > 0)
- root = roots[0];
+ root = roots[0];
else
- root = 0;
-
+ root = 0;
+
free(roots);
return root;
}
{
XWindowAttributes att;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XGetWindowAttributes(_ecore_x_disp, win, &att) != True) return 0;
ecore_x_sync();
_ecore_x_window_manage_failed = 0;
EAPI void
ecore_x_window_container_manage(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSelectInput(_ecore_x_disp, win,
SubstructureRedirectMask |
SubstructureNotifyMask);
EAPI void
ecore_x_window_client_manage(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSelectInput(_ecore_x_disp, win,
PropertyChangeMask |
// ResizeRedirectMask |
EAPI void
ecore_x_window_sniff(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSelectInput(_ecore_x_disp, win,
PropertyChangeMask |
SubstructureNotifyMask);
EAPI void
ecore_x_window_client_sniff(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSelectInput(_ecore_x_disp, win,
PropertyChangeMask |
FocusChangeMask |
{
XWindowAttributes att;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetWindowAttributes(_ecore_x_disp, win, &att)) return 0;
memset(att_ret, 0, sizeof(Ecore_X_Window_Attributes));
att_ret->root = att.root;
EAPI void
ecore_x_window_save_set_add(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XAddToSaveSet(_ecore_x_disp, win);
}
EAPI void
ecore_x_window_save_set_del(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XRemoveFromSaveSet(_ecore_x_disp, win);
}
Window root_ret = 0, parent_ret = 0, *children_ret = NULL;
unsigned int children_ret_num = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XQueryTree(_ecore_x_disp, win, &root_ret, &parent_ret, &children_ret,
&children_ret_num))
{
EAPI int
ecore_x_pointer_control_set(int accel_num, int accel_denom, int threshold)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XChangePointerControl(_ecore_x_disp, 1, 1,
accel_num, accel_denom, threshold);
}
EAPI int
ecore_x_pointer_control_get(int *accel_num, int *accel_denom, int *threshold)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetPointerControl(_ecore_x_disp,
accel_num, accel_denom, threshold);
}
EAPI int
ecore_x_pointer_mapping_set(unsigned char *map, int nmap)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSetPointerMapping(_ecore_x_disp, map, nmap);
}
EAPI int
ecore_x_pointer_mapping_get(unsigned char *map, int nmap)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XGetPointerMapping(_ecore_x_disp, map, nmap);
}
EAPI int
ecore_x_pointer_grab(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XGrabPointer(_ecore_x_disp, win, False,
ButtonPressMask | ButtonReleaseMask |
EnterWindowMask | LeaveWindowMask | PointerMotionMask,
EAPI int
ecore_x_pointer_confine_grab(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XGrabPointer(_ecore_x_disp, win, False,
ButtonPressMask | ButtonReleaseMask |
EnterWindowMask | LeaveWindowMask | PointerMotionMask,
EAPI void
ecore_x_pointer_ungrab(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XUngrabPointer(_ecore_x_disp, CurrentTime);
}
EAPI int
ecore_x_pointer_warp(Ecore_X_Window win, int x, int y)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XWarpPointer(_ecore_x_disp, None, win, 0, 0, 0, 0, x, y);
}
EAPI int
ecore_x_keyboard_grab(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XGrabKeyboard(_ecore_x_disp, win, False,
GrabModeAsync, GrabModeAsync,
CurrentTime) == GrabSuccess) return 1;
EAPI void
ecore_x_keyboard_ungrab(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XUngrabKeyboard(_ecore_x_disp, CurrentTime);
}
EAPI void
ecore_x_grab(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_grab_count++;
if (_ecore_x_grab_count == 1) XGrabServer(_ecore_x_disp);
}
EAPI void
ecore_x_ungrab(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_grab_count--;
if (_ecore_x_grab_count < 0) _ecore_x_grab_count = 0;
if (_ecore_x_grab_count == 0) XUngrabServer(_ecore_x_disp);
EAPI void
ecore_x_passive_grab_replay_func_set(int (*func) (void *data, int event_type, void *event), void *data)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_window_grab_replay_func = func;
_ecore_window_grab_replay_data = data;
}
unsigned int locks[8];
int i, ev;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
b = button;
if (b == 0) b = AnyButton;
m = _ecore_x_event_modifier(mod);
unsigned int locks[8];
int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
b = button;
if (b == 0) b = AnyButton;
m = _ecore_x_event_modifier(mod);
unsigned int locks[8];
int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!strncmp(key, "Keycode-", 8))
keycode = atoi(key + 8);
else
unsigned int locks[8];
int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!strncmp(key, "Keycode-", 8))
keycode = atoi(key + 8);
else
Ecore_X_Event_Mask mask,
long d0, long d1, long d2, long d3, long d4)
{
- XEvent xev;
-
- xev.xclient.window = win;
- xev.xclient.type = ClientMessage;
- xev.xclient.message_type = type;
- xev.xclient.format = 32;
- xev.xclient.data.l[0] = d0;
- xev.xclient.data.l[1] = d1;
- xev.xclient.data.l[2] = d2;
- xev.xclient.data.l[3] = d3;
- xev.xclient.data.l[4] = d4;
-
- return XSendEvent(_ecore_x_disp, win, False, mask, &xev);
+ XEvent xev;
+
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ xev.xclient.window = win;
+ xev.xclient.type = ClientMessage;
+ xev.xclient.message_type = type;
+ xev.xclient.format = 32;
+ xev.xclient.data.l[0] = d0;
+ xev.xclient.data.l[1] = d1;
+ xev.xclient.data.l[2] = d2;
+ xev.xclient.data.l[3] = d3;
+ xev.xclient.data.l[4] = d4;
+
+ return XSendEvent(_ecore_x_disp, win, False, mask, &xev);
}
/**
ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
const void *data, int len)
{
- XEvent xev;
-
- xev.xclient.window = win;
- xev.xclient.type = ClientMessage;
- xev.xclient.message_type = type;
- xev.xclient.format = 8;
- if (len > 20)
- len = 20;
- memcpy(xev.xclient.data.b, data, len);
- memset(xev.xclient.data.b + len, 0, 20 - len);
-
- return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
+ XEvent xev;
+
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ xev.xclient.window = win;
+ xev.xclient.type = ClientMessage;
+ xev.xclient.message_type = type;
+ xev.xclient.format = 8;
+ if (len > 20) len = 20;
+ memcpy(xev.xclient.data.b, data, len);
+ memset(xev.xclient.data.b + len, 0, 20 - len);
+
+ return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
}
EAPI int
Window tw;
int rx, ry;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetWindowAttributes(_ecore_x_disp, win, &att);
XTranslateCoordinates(_ecore_x_disp, win, att.root, x, y, &rx, &ry, &tw);
xev.xmotion.type = MotionNotify;
Window tw;
int rx, ry;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetWindowAttributes(_ecore_x_disp, win, &att);
XTranslateCoordinates(_ecore_x_disp, win, att.root, x, y, &rx, &ry, &tw);
xev.xbutton.type = ButtonPress;
Window tw;
int rx, ry;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetWindowAttributes(_ecore_x_disp, win, &att);
XTranslateCoordinates(_ecore_x_disp, win, att.root, x, y, &rx, &ry, &tw);
xev.xbutton.type = ButtonRelease;
EAPI void
ecore_x_focus_reset(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetInputFocus(_ecore_x_disp, PointerRoot, RevertToPointerRoot, CurrentTime);
}
EAPI void
ecore_x_events_allow_all(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime);
}
int rx, ry, wx, wy, ret;
unsigned int mask;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = XQueryPointer(_ecore_x_disp, win, &rwin, &cwin, &rx, &ry, &wx, &wy, &mask);
if (!ret) wx = wy = -1;
if (x) *x = wx;
ecore_x_atom_get(const char *name)
{
if (!_ecore_x_disp) return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XInternAtom(_ecore_x_disp, name, False);
}
int i;
if (!_ecore_x_disp) return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
atoms_int = alloca(num * sizeof(Atom));
XInternAtoms(_ecore_x_disp, (char **)names, num, False, atoms_int);
for (i = 0; i < num; i++)
char *xname;
if (!_ecore_x_disp) return NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xname = XGetAtomName(_ecore_x_disp, atom);
if (!xname) return NULL;
EAPI int
ecore_x_composite_query(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _composite_available;
}
#ifdef ECORE_XCOMPOSITE
int update = CompositeRedirectAutomatic;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
switch(type)
{
case ECORE_X_COMPOSITE_UPDATE_AUTOMATIC:
#ifdef ECORE_XCOMPOSITE
int update = CompositeRedirectAutomatic;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
switch(type)
{
case ECORE_X_COMPOSITE_UPDATE_AUTOMATIC:
#ifdef ECORE_XCOMPOSITE
int update = CompositeRedirectAutomatic;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
switch(type)
{
case ECORE_X_COMPOSITE_UPDATE_AUTOMATIC:
#ifdef ECORE_XCOMPOSITE
int update = CompositeRedirectAutomatic;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
switch(type)
{
case ECORE_X_COMPOSITE_UPDATE_AUTOMATIC:
Ecore_X_Pixmap pixmap = None;
#ifdef ECORE_XCOMPOSITE
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
pixmap = XCompositeNameWindowPixmap(_ecore_x_disp, win);
#endif
#ifdef ECORE_XCOMPOSITE
XRectangle rect;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
win = XCompositeGetOverlayWindow(_ecore_x_disp, root);
rect.x = -1;
rect.y = -1;
ecore_x_composite_render_window_disable(Ecore_X_Window root)
{
#ifdef ECORE_XCOMPOSITE
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XCompositeReleaseOverlayWindow(_ecore_x_disp, root);
#endif
}
ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int hot_y)
{
#ifdef ECORE_XCURSOR
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (_ecore_x_xcursor)
{
Cursor c;
EAPI void
ecore_x_cursor_free(Ecore_X_Cursor c)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreeCursor(_ecore_x_disp, c);
}
EAPI Ecore_X_Cursor
ecore_x_cursor_shape_get(int shape)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* Shapes are defined in Ecore_X_Cursor.h */
return XCreateFontCursor(_ecore_x_disp, shape);
}
ecore_x_cursor_size_set(int size)
{
#ifdef ECORE_XCURSOR
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XcursorSetDefaultSize(_ecore_x_disp, size);
#else
size = 0;
ecore_x_cursor_size_get(void)
{
#ifdef ECORE_XCURSOR
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XcursorGetDefaultSize(_ecore_x_disp);
#else
return 0;
_damage_major = 1;
_damage_minor = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XDamageQueryVersion(_ecore_x_disp, &_damage_major, &_damage_minor))
_damage_available = 1;
else
#ifdef ECORE_XDAMAGE
Ecore_X_Damage damage;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
damage = XDamageCreate(_ecore_x_disp, d, level);
return damage;
#else
ecore_x_damage_free(Ecore_X_Damage damage)
{
#ifdef ECORE_XDAMAGE
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDamageDestroy(_ecore_x_disp, damage);
#endif
}
ecore_x_damage_subtract(Ecore_X_Damage damage, Ecore_X_Region repair, Ecore_X_Region parts)
{
#ifdef ECORE_XDAMAGE
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDamageSubtract(_ecore_x_disp, damage, repair, parts);
#endif
}
{
Ecore_X_Atom prop_data = ECORE_X_DND_VERSION;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (on)
ecore_x_window_prop_property_set(win, ECORE_X_ATOM_XDND_AWARE,
XA_ATOM, 32, &prop_data, 1);
unsigned char *prop_data;
int num;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
// this looks hacky - and it is, but we need a way of caching info about
// a window while dragging, because we literally query this every mouse
// move and going to and from x multiple times per move is EXPENSIVE
unsigned char *data;
Ecore_X_Atom *atoms, atom;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_property_get(win, ECORE_X_ATOM_XDND_TYPE_LIST,
XA_ATOM, 32, &data, &num))
return ret;
unsigned char *data = NULL;
unsigned char *old_data = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
atom = ecore_x_atom_get(type);
ecore_x_window_prop_property_get(win, ECORE_X_ATOM_XDND_TYPE_LIST,
XA_ATOM, 32, &old_data, &num);
oldset = (Ecore_X_Atom *)old_data;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (on)
{
if (ecore_x_dnd_type_isset(win, type))
unsigned int i;
unsigned char *data = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!num_types)
{
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_XDND_TYPE_LIST);
unsigned int i;
unsigned char *data = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!num_actions)
{
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_XDND_ACTION_LIST);
ecore_x_dnd_begin(Ecore_X_Window source, unsigned char *data, int size)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_dnd_version_get(source))
return 0;
XEvent xev;
int status = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (_source->dest)
{
xev.xany.type = ClientMessage;
if (_target->state == ECORE_X_DND_TARGET_IDLE)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
memset(&xev, 0, sizeof(XEvent));
_target->will_accept = will_accept;
if (_target->state == ECORE_X_DND_TARGET_IDLE)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xev.xany.type = ClientMessage;
xev.xany.display = _ecore_x_disp;
xev.xclient.message_type = ECORE_X_ATOM_XDND_FINISHED;
ecore_x_dpms_capable_get(void)
{
#ifdef ECORE_XDPMS
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return DPMSCapable(_ecore_x_disp);
#else
return 0;
unsigned char state;
unsigned short power_lvl;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSInfo(_ecore_x_disp, &power_lvl, &state);
return state;
#else
ecore_x_dpms_enabled_set(int enabled)
{
#ifdef ECORE_XDPMS
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (enabled)
DPMSEnable(_ecore_x_disp);
else
ecore_x_dpms_timeouts_get(unsigned int *standby, unsigned int *suspend, unsigned int *off)
{
#ifdef ECORE_XDPMS
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, (unsigned short *)standby,
(unsigned short *)suspend, (unsigned short *)off);
#endif
ecore_x_dpms_timeouts_set(unsigned int standby, unsigned int suspend, unsigned int off)
{
#ifdef ECORE_XDPMS
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return DPMSSetTimeouts(_ecore_x_disp, standby, suspend, off);
#else
return 0;
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
return standby;
#else
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
return suspend;
#else
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
return off;
#else
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, new_timeout, suspend, off);
#endif
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, standby, new_timeout, off);
#endif
#ifdef ECORE_XDPMS
unsigned short standby, suspend, off;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
DPMSGetTimeouts(_ecore_x_disp, &standby, &suspend, &off);
DPMSSetTimeouts(_ecore_x_disp, standby, suspend, new_timeout);
#endif
int ret_x, ret_y;
unsigned int ret_w, ret_h, dummy_border, dummy_depth;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetGeometry(_ecore_x_disp, d, &dummy_win, &ret_x, &ret_y,
&ret_w, &ret_h, &dummy_border, &dummy_depth))
{
int dummy_x, dummy_y;
unsigned int dummy_w, dummy_h, border_ret, dummy_depth;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetGeometry(_ecore_x_disp, d, &dummy_win, &dummy_x, &dummy_y,
&dummy_w, &dummy_h, &border_ret, &dummy_depth))
border_ret = 0;
int dummy_x, dummy_y;
unsigned int dummy_w, dummy_h, dummy_border, depth_ret;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetGeometry(_ecore_x_disp, d, &dummy_win, &dummy_x, &dummy_y,
&dummy_w, &dummy_h, &dummy_border, &depth_ret))
depth_ret = 0;
EAPI void
ecore_x_drawable_rectangle_fill(Ecore_X_Drawable d, Ecore_X_GC gc, int x, int y, int width, int height)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFillRectangle(_ecore_x_disp, d, gc, x, y, width, height);
}
{
unsigned int frames[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
frames[0] = fl;
frames[1] = fr;
frames[2] = ft;
EAPI void
ecore_x_e_virtual_keyboard_set(Ecore_X_Window win, unsigned int is_keyboard)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD,
&is_keyboard, 1);
}
{
unsigned int val;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD, &val, 1))
return 0;
return val;
{
Ecore_X_Atom atom = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
atom = _ecore_x_e_vkbd_atom_get(state);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE,
&atom, 1);
{
Ecore_X_Atom atom;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_atom_get(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE,
&atom, 1))
return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN;
EAPI void
ecore_x_e_virtual_keyboard_state_send(Ecore_X_Window win, Ecore_X_Virtual_Keyboard_State state)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_vkbd_atom_get(state),
EAPI void
ecore_x_e_illume_zone_set(Ecore_X_Window win, Ecore_X_Window zone)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_E_ILLUME_ZONE,
&zone, 1);
}
{
Ecore_X_Window zone;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_window_get(win, ECORE_X_ATOM_E_ILLUME_ZONE,
&zone, 1)) return 0;
return zone;
EAPI void
ecore_x_e_illume_zone_list_set(Ecore_X_Window win, Ecore_X_Window *zones, unsigned int n_zones)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_E_ILLUME_ZONE_LIST,
zones, n_zones);
}
EAPI void
ecore_x_e_illume_conformant_set(Ecore_X_Window win, unsigned int is_conformant)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_CONFORMANT,
&is_conformant, 1);
}
{
unsigned int val = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_CONFORMANT,
&val, 1))
return 0;
{
Ecore_X_Atom atom = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
atom = _ecore_x_e_illume_atom_get(mode);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_ILLUME_MODE,
&atom, 1);
{
Ecore_X_Atom atom = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_atom_get(win, ECORE_X_ATOM_E_ILLUME_MODE, &atom, 1))
return ECORE_X_ILLUME_MODE_UNKNOWN;
return _ecore_x_e_illume_mode_get(atom);
EAPI void
ecore_x_e_illume_mode_send(Ecore_X_Window win, Ecore_X_Illume_Mode mode)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_MODE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_illume_atom_get(mode),
EAPI void
ecore_x_e_illume_focus_back_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_BACK,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
EAPI void
ecore_x_e_illume_focus_forward_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_FORWARD,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
EAPI void
ecore_x_e_illume_focus_home_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_FOCUS_HOME,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
EAPI void
ecore_x_e_illume_close_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_CLOSE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
EAPI void
ecore_x_e_illume_home_new_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_HOME_NEW,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
EAPI void
ecore_x_e_illume_home_del_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_HOME_DEL,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
EAPI void
ecore_x_e_illume_drag_set(Ecore_X_Window win, unsigned int drag)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG, &drag, 1);
}
{
unsigned int val = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_DRAG, &val, 1))
return 0;
return val;
EAPI void
ecore_x_e_illume_drag_locked_set(Ecore_X_Window win, unsigned int is_locked)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED,
&is_locked, 1);
}
{
unsigned int val = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_DRAG_LOCKED,
&val, 1))
return 0;
EAPI void
ecore_x_e_illume_drag_start_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_DRAG_START,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
EAPI void
ecore_x_e_illume_drag_end_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_DRAG_END,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
1, 0, 0, 0, 0);
{
unsigned int geom[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
geom[0] = x;
geom[1] = y;
geom[2] = w;
int ret = 0;
unsigned int geom[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret =
ecore_x_window_prop_card32_get(win,
ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY,
{
unsigned int geom[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
geom[0] = x;
geom[1] = y;
geom[2] = w;
int ret = 0;
unsigned int geom[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret =
ecore_x_window_prop_card32_get(win,
ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY,
{
unsigned int geom[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
geom[0] = x;
geom[1] = y;
geom[2] = w;
int ret = 0;
unsigned int geom[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret =
ecore_x_window_prop_card32_get(win,
ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY,
EAPI void
ecore_x_e_illume_quickpanel_set(Ecore_X_Window win, unsigned int is_quickpanel)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL,
&is_quickpanel, 1);
}
{
unsigned int val = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL,
&val, 1))
return 0;
{
Ecore_X_Atom atom = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
atom = _ecore_x_e_quickpanel_atom_get(state);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE,
&atom, 1);
{
Ecore_X_Atom atom;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_atom_get(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE,
&atom, 1))
return ECORE_X_ILLUME_QUICKPANEL_STATE_UNKNOWN;
EAPI void
ecore_x_e_illume_quickpanel_state_send(Ecore_X_Window win, Ecore_X_Illume_Quickpanel_State state)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_STATE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
_ecore_x_e_quickpanel_atom_get(state),
EAPI void
ecore_x_e_illume_quickpanel_priority_major_set(Ecore_X_Window win, unsigned int priority)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR,
&priority, 1);
{
unsigned int val = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MAJOR,
&val, 1))
return 0;
EAPI void
ecore_x_e_illume_quickpanel_priority_minor_set(Ecore_X_Window win, unsigned int priority)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR,
&priority, 1);
{
unsigned int val = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_PRIORITY_MINOR,
&val, 1))
return 0;
EAPI void
ecore_x_e_illume_quickpanel_zone_set(Ecore_X_Window win, unsigned int zone)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_ZONE,
&zone, 1);
{
unsigned int val = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_E_ILLUME_QUICKPANEL_ZONE,
&val, 1))
return 0;
EAPI void
ecore_x_e_illume_quickpanel_position_update_send(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win,
ECORE_X_ATOM_E_ILLUME_QUICKPANEL_POSITION_UPDATE,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
EAPI void
ecore_x_e_comp_sync_counter_set(Ecore_X_Window win, Ecore_X_Sync_Counter counter)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (counter)
ecore_x_window_prop_xid_set(win, ECORE_X_ATOM_E_COMP_SYNC_COUNTER,
ECORE_X_ATOM_CARDINAL, &counter, 1);
int ret = 0;
Ecore_X_Sync_Counter counter = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret =
ecore_x_window_prop_xid_get(win,
ECORE_X_ATOM_E_COMP_SYNC_COUNTER,
{
XEvent xev;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!root) root = DefaultRootWindow(_ecore_x_disp);
xev.xclient.type = ClientMessage;
xev.xclient.display = _ecore_x_disp;
Ecore_X_Window win;
if (!root) root = DefaultRootWindow(_ecore_x_disp);
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (enabled)
{
win = ecore_x_window_new(root, 1, 2, 3, 4);
Ecore_X_Window win, win2;
int ret;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!root) root = DefaultRootWindow(_ecore_x_disp);
ret =
ecore_x_window_prop_xid_get(root,
{
XEvent xev;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xev.xclient.type = ClientMessage;
xev.xclient.display = _ecore_x_disp;
xev.xclient.window = win;
{
XEvent xev;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xev.xclient.type = ClientMessage;
xev.xclient.display = _ecore_x_disp;
xev.xclient.window = win;
{
XEvent xev;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xev.xclient.type = ClientMessage;
xev.xclient.display = _ecore_x_disp;
xev.xclient.window = win;
XWindowAttributes attr;
XSetWindowAttributes s_attr;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!w) w = DefaultRootWindow(_ecore_x_disp);
memset(&attr, 0, sizeof(XWindowAttributes));
XGetWindowAttributes(_ecore_x_disp, w, &attr);
XWindowAttributes attr;
XSetWindowAttributes s_attr;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!w) w = DefaultRootWindow(_ecore_x_disp);
memset(&attr, 0, sizeof(XWindowAttributes));
XGetWindowAttributes(_ecore_x_disp, w, &attr);
Ecore_X_Event_Selection_Clear *e;
Ecore_X_Atom sel;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_last_event_mouse_move = 0;
d = _ecore_x_selection_get(xevent->xselectionclear.selection);
if (d && (xevent->xselectionclear.time > d->time))
Ecore_X_Selection_Intern *sd;
void *data;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_last_event_mouse_move = 0;
/*
* Generate a selection request event.
Ecore_X_Atom selection;
int num_ret, format;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_last_event_mouse_move = 0;
selection = xevent->xselection.selection;
e = calloc(1, sizeof(Ecore_X_Event_Xdnd_Enter));
if (!e) return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
target = _ecore_x_dnd_target_get();
target->state = ECORE_X_DND_TARGET_ENTERED;
target->source = xevent->xclient.data.l[0];
Ecore_X_Atom *types;
int i, num_ret;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!(ecore_x_window_prop_property_get(target->source,
ECORE_X_ATOM_XDND_TYPE_LIST,
XA_ATOM,
e->types = calloc(num_ret, sizeof(char *));
if (e->types)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
for (i = 0; i < num_ret; i++)
e->types[i] = XGetAtomName(_ecore_x_disp, types[i]);
}
e->types = calloc(3, sizeof(char *));
if (e->types)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
while ((i < 3) && (xevent->xclient.data.l[i + 2]))
{
e->types[i] = XGetAtomName(_ecore_x_disp, xevent->xclient.data.l[i + 2]);
Ecore_X_Event_Xdnd_Position *e;
Ecore_X_DND_Target *target;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
target = _ecore_x_dnd_target_get();
if ((target->source != (Ecore_X_Window)xevent->xclient.data.l[0]) ||
(target->win != xevent->xclient.window))
Ecore_X_Event_Xdnd_Status *e;
Ecore_X_DND_Source *source;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
source = _ecore_x_dnd_source_get();
/* Make sure source/target match */
if ((source->win != xevent->xclient.window ) ||
Ecore_X_Event_Xdnd_Leave *e;
Ecore_X_DND_Target *target;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
target = _ecore_x_dnd_target_get();
if ((target->source != (Ecore_X_Window)xevent->xclient.data.l[0]) ||
(target->win != xevent->xclient.window))
Ecore_X_Event_Xdnd_Drop *e;
Ecore_X_DND_Target *target;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
target = _ecore_x_dnd_target_get();
/* Match source/target */
if ((target->source != (Window)xevent->xclient.data.l[0]) ||
Ecore_X_DND_Source *source;
int completed = 1;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
source = _ecore_x_dnd_source_get();
/* Match source/target */
if ((source->win != xevent->xclient.window) ||
if ((source->version < 5) || (xevent->xclient.data.l[1] & 0x1UL))
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* Target successfully performed drop action */
ecore_x_selection_xdnd_clear();
source->state = ECORE_X_DND_SOURCE_IDLE;
free(e);
return;
}
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
e->state[0] = _ecore_x_netwm_state_get(xevent->xclient.data.l[1]);
if (e->state[0] == ECORE_X_WINDOW_STATE_UNKNOWN)
{
char *name;
- name = XGetAtomName(_ecore_x_disp, xevent->xclient.data.l[1]);
- if (name) ERR("Unknown state: %s", name);
- XFree(name);
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+// name = XGetAtomName(_ecore_x_disp, xevent->xclient.data.l[1]);
+// if (name) ERR("Unknown state: %s", name);
+// XFree(name);
}
e->state[1] = _ecore_x_netwm_state_get(xevent->xclient.data.l[2]);
if (e->state[1] == ECORE_X_WINDOW_STATE_UNKNOWN)
{
char *name;
- name = XGetAtomName(_ecore_x_disp, xevent->xclient.data.l[2]);
- if (name) ERR("Unknown state: %s", name);
- XFree(name);
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+// name = XGetAtomName(_ecore_x_disp, xevent->xclient.data.l[2]);
+// if (name) ERR("Unknown state: %s", name);
+// XFree(name);
}
e->source = xevent->xclient.data.l[3];
/* send a reply anyway - we are alive... eventloop at least */
ecore_event_add(ECORE_X_EVENT_PING, e, NULL, NULL);
if (ScreenCount(_ecore_x_disp) > 1)
- root = ecore_x_window_root_get(e->win);
+ {
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ root = ecore_x_window_root_get(e->win);
+ }
else
root = DefaultRootWindow(_ecore_x_disp);
_ecore_x_last_event_mouse_move = 0;
randr_event = (const XRRNotifyEvent *)xevent;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
switch (randr_event->subtype)
{
case RRNotify_CrtcChange:
XGenericEvent *generic_event;
Ecore_X_Event_Generic *e;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
generic_event = (XGenericEvent *)event;
e = calloc(1, sizeof(Ecore_X_Event_Generic));
_fixes_major = 3;
_fixes_minor = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XFixesQueryVersion(_ecore_x_disp, &_fixes_major, &_fixes_minor))
_fixes_available = 1;
else
Ecore_X_Region region;
XRectangle *xrect;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xrect = _ecore_x_rectangle_ecore_to_x(rects, num);
region = XFixesCreateRegion(_ecore_x_disp, xrect, num);
free(xrect);
#ifdef ECORE_XFIXES
Ecore_X_Region region;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
region = XFixesCreateRegionFromBitmap(_ecore_x_disp, bitmap);
return region;
#else
#ifdef ECORE_XFIXES
Ecore_X_Region region;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
region = XFixesCreateRegionFromWindow(_ecore_x_disp, win, type);
return region;
#else
#ifdef ECORE_XFIXES
Ecore_X_Region region;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
region = XFixesCreateRegionFromGC(_ecore_x_disp, gc);
return region;
#else
#ifdef ECORE_XFIXES
Ecore_X_Region region;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
region = XFixesCreateRegionFromPicture(_ecore_x_disp, picture);
return region;
#else
ecore_x_region_free(Ecore_X_Region region)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesDestroyRegion(_ecore_x_disp, region);
#endif
}
{
#ifdef ECORE_XFIXES
XRectangle *xrect = _ecore_x_rectangle_ecore_to_x(rects, num);
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSetRegion(_ecore_x_disp, region, xrect, num);
#endif
}
ecore_x_region_copy(Ecore_X_Region dest, Ecore_X_Region source)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesCopyRegion(_ecore_x_disp, dest, source);
#endif
}
ecore_x_region_combine(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesUnionRegion(_ecore_x_disp, dest, source1, source2);
#endif
}
ecore_x_region_intersect(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesIntersectRegion(_ecore_x_disp, dest, source1, source2);
#endif
}
ecore_x_region_subtract(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Region source2)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSubtractRegion(_ecore_x_disp, dest, source1, source2);
#endif
}
XRectangle *xbound;
int num = 0;
- while(bounds + num) num++;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ while (bounds + num) num++;
xbound = _ecore_x_rectangle_ecore_to_x(bounds, num);
XFixesInvertRegion(_ecore_x_disp, dest, xbound, source);
ecore_x_region_translate(Ecore_X_Region region, int dx, int dy)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesTranslateRegion(_ecore_x_disp, region, dx, dy);
#endif
}
ecore_x_region_extents(Ecore_X_Region dest, Ecore_X_Region source)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesRegionExtents(_ecore_x_disp, dest, source);
#endif
}
EAPI Ecore_X_Rectangle *
ecore_x_region_fetch(Ecore_X_Region region, int *num, Ecore_X_Rectangle *bounds){
#ifdef ECORE_XFIXES
- Ecore_X_Rectangle *rects;
- XRectangle *xrect, xbound;
-
- xrect = XFixesFetchRegionAndBounds(_ecore_x_disp, region, num, &xbound);
- rects = _ecore_x_rectangle_x_to_ecore(xrect, *num);
- (*bounds).x = xbound.x;
- (*bounds).y = xbound.y;
- (*bounds).width = xbound.width;
- (*bounds).height = xbound.height;
- return rects;
+ Ecore_X_Rectangle *rects;
+ XRectangle *xrect, xbound;
+
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ xrect = XFixesFetchRegionAndBounds(_ecore_x_disp, region, num, &xbound);
+ rects = _ecore_x_rectangle_x_to_ecore(xrect, *num);
+ (*bounds).x = xbound.x;
+ (*bounds).y = xbound.y;
+ (*bounds).width = xbound.width;
+ (*bounds).height = xbound.height;
+ return rects;
#else
- return NULL;
+ return NULL;
#endif
}
ecore_x_region_expand(Ecore_X_Region dest, Ecore_X_Region source, unsigned int left, unsigned int right, unsigned int top, unsigned int bottom)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesExpandRegion(_ecore_x_disp, dest, source, left, right, top, bottom);
#endif
}
ecore_x_region_gc_clip_set(Ecore_X_Region region, Ecore_X_GC gc, int x_origin, int y_origin)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSetGCClipRegion(_ecore_x_disp, gc, x_origin, y_origin, region);
#endif
}
ecore_x_region_window_shape_set(Ecore_X_Region region, Ecore_X_Window win, Ecore_X_Shape_Type type, int x_offset, int y_offset)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSetWindowShapeRegion(_ecore_x_disp, win, type, x_offset, y_offset, region);
#endif
}
ecore_x_region_picture_clip_set(Ecore_X_Region region, Ecore_X_Picture picture, int x_origin, int y_origin)
{
#ifdef ECORE_XFIXES
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFixesSetPictureClipRegion(_ecore_x_disp, picture, x_origin, y_origin, region);
#endif
}
int index;
int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!draw) draw = DefaultRootWindow(_ecore_x_disp);
memset(&gcv, 0, sizeof (gcv));
EAPI void
ecore_x_gc_free(Ecore_X_GC gc)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreeGC(_ecore_x_disp, gc);
}
EAPI void
ecore_x_icccm_init(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
}
EAPI void
{
unsigned long c[2];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (state == ECORE_X_WINDOW_STATE_HINT_WITHDRAWN)
c[0] = WithdrawnState;
else if (state == ECORE_X_WINDOW_STATE_HINT_NORMAL)
int format_ret;
Ecore_X_Window_State_Hint hint;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
hint = ECORE_X_WINDOW_STATE_HINT_NONE;
XGetWindowProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_STATE,
0, 0x7fffffff, False, ECORE_X_ATOM_WM_STATE,
EAPI void
ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_DELETE_WINDOW,
EAPI void
ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_TAKE_FOCUS,
EAPI void
ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
ECORE_X_EVENT_MASK_NONE,
ECORE_X_ATOM_WM_SAVE_YOURSELF,
{
XEvent ev;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ev.type = ConfigureNotify;
ev.xconfigure.display = _ecore_x_disp;
ev.xconfigure.event = win;
if (!hints)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
hints->flags = InputHint | StateHint;
hints->input = accepts_focus;
if (initial_state == ECORE_X_WINDOW_STATE_HINT_WITHDRAWN)
{
XWMHints *hints;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (accepts_focus)
*accepts_focus = 1;
if (initial_state)
XSizeHints hint;
long mask;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetWMNormalHints(_ecore_x_disp, win, &hint, &mask))
{
memset(&hint, 0, sizeof(XSizeHints));
int stepx = -1, stepy = -1;
double mina = 0.0, maxa = 0.0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetWMNormalHints(_ecore_x_disp, win, &hint, &mask))
return 0;
if (!t) return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xprop.value = NULL;
#ifdef X_HAVE_UTF8_STRING
list[0] = strdup(t);
{
XTextProperty xprop;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xprop.value = NULL;
if (XGetWMName(_ecore_x_disp, win, &xprop) >= Success)
{
EAPI void
ecore_x_icccm_protocol_atoms_set(Ecore_X_Window win, Ecore_X_Atom *protos, int num)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num > 0)
XSetWMProtocols(_ecore_x_disp, win, (Atom *)(protos), num);
else
if (protocol >= ECORE_X_WM_PROTOCOL_NUM)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
proto = _ecore_x_atoms_wm_protocols[protocol];
if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count))
if (protocol >= ECORE_X_WM_PROTOCOL_NUM)
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
proto = _ecore_x_atoms_wm_protocols[protocol];
if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count))
xch = XAllocClassHint();
if (!xch)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xch->res_name = (char *)n;
xch->res_class = (char *)c;
XSetClassHint(_ecore_x_disp, win, xch);
{
XClassHint xch;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (n) *n = NULL;
if (c) *c = NULL;
xch.res_name = NULL;
{
char *name;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
name = ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_CLIENT_MACHINE);
return name;
}
EAPI void
ecore_x_icccm_command_set(Ecore_X_Window win, int argc, char **argv)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetCommand(_ecore_x_disp, win, argv, argc);
}
if (argc) *argc = 0;
if (argv) *argv = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetCommand(_ecore_x_disp, win, &v, &c))
return;
if (c < 1)
XTextProperty xprop;
int ret;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xprop.value = NULL;
#ifdef X_HAVE_UTF8_STRING
list[0] = strdup(t);
{
XTextProperty xprop;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xprop.value = NULL;
if (XGetWMIconName(_ecore_x_disp, win, &xprop) >= Success)
{
Window *oldset = NULL;
Window *newset = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_property_get(win,
ECORE_X_ATOM_WM_COLORMAP_WINDOWS,
XA_WINDOW, 32, &old_data, &num))
Window *oldset = NULL;
Window *newset = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_prop_property_get(win,
ECORE_X_ATOM_WM_COLORMAP_WINDOWS,
XA_WINDOW, 32, &old_data, &num))
EAPI void
ecore_x_icccm_transient_for_set(Ecore_X_Window win, Ecore_X_Window forwin)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetTransientForHint(_ecore_x_disp, win, forwin);
}
EAPI void
ecore_x_icccm_transient_for_unset(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDeleteProperty(_ecore_x_disp, win, ECORE_X_ATOM_WM_TRANSIENT_FOR);
}
{
Window forwin;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (XGetTransientForHint(_ecore_x_disp, win, &forwin))
- return (Ecore_X_Window) forwin;
+ return (Ecore_X_Window) forwin;
else
- return 0;
+ return 0;
}
EAPI void
ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_WINDOW_ROLE,
(char *)role);
}
EAPI char *
ecore_x_icccm_window_role_get(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_WINDOW_ROLE);
}
EAPI void
ecore_x_icccm_client_leader_set(Ecore_X_Window win, Ecore_X_Window l)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(win, ECORE_X_ATOM_WM_CLIENT_LEADER,
&l, 1);
}
{
Ecore_X_Window l;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (ecore_x_window_prop_window_get(win, ECORE_X_ATOM_WM_CLIENT_LEADER,
&l, 1) > 0)
- return l;
+ return l;
return 0;
}
XEvent xev;
if (!win) return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!root) root = DefaultRootWindow(_ecore_x_disp);
xev.xclient.type = ClientMessage;
im = calloc(1, sizeof(Ecore_X_Image));
if (!im) return NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
im->w = w;
im->h = h;
im->vis = vis;
EAPI void
ecore_x_image_free(Ecore_X_Image *im)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (im->shm)
{
if (im->xim)
int ret = 1;
XErrorHandler ph;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (im->shm)
{
if (!im->xim) _ecore_x_image_shm_create(im);
ecore_x_image_put(Ecore_X_Image *im, Ecore_X_Drawable draw,
int x, int y, int sx, int sy, int w, int h)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
printf("ecore_x_image_put: unimplemented!\n");
}
EAPI void *
ecore_x_image_data_get(Ecore_X_Image *im, int *bpl, int *rows, int *bpp)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!im->xim) _ecore_x_image_shm_create(im);
if (!im->xim) return NULL;
int num;
int ret;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = 0;
if (!ecore_x_window_prop_property_get(win,
ECORE_X_ATOM_MOTIF_WM_HINTS,
data[0] = 2; /* just set the decorations hint! */
data[2] = !borderless;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_property_set(win,
ECORE_X_ATOM_MOTIF_WM_HINTS,
ECORE_X_ATOM_MOTIF_WM_HINTS,
EAPI void
ecore_x_netwm_init(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
startup_info = eina_hash_string_superfast_new(_ecore_x_netwm_startup_info_free);
}
EAPI void
ecore_x_netwm_shutdown(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (startup_info)
eina_hash_free(startup_info);
startup_info = NULL;
ecore_x_netwm_wm_identify(Ecore_X_Window root, Ecore_X_Window check,
const char *wm_name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK, &check, 1);
ecore_x_window_prop_window_set(check, ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK, &check, 1);
_ecore_x_window_prop_string_utf8_set(check, ECORE_X_ATOM_NET_WM_NAME, wm_name);
EAPI void
ecore_x_netwm_supported_set(Ecore_X_Window root, Ecore_X_Atom *supported, int num)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_atom_set(root, ECORE_X_ATOM_NET_SUPPORTED, supported, num);
}
if (num) *num = 0;
if (supported) *supported = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
num_ret = ecore_x_window_prop_atom_list_get(root, ECORE_X_ATOM_NET_SUPPORTED,
supported);
if (num_ret <= 0)
EAPI void
ecore_x_netwm_desk_count_set(Ecore_X_Window root, unsigned int n_desks)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS,
&n_desks, 1);
}
ecore_x_netwm_desk_roots_set(Ecore_X_Window root,
Ecore_X_Window *vroots, unsigned int n_desks)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_VIRTUAL_ROOTS, vroots, n_desks);
}
unsigned int i;
int l, len;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
buf = NULL;
len = 0;
{
unsigned int size[2];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
size[0] = width;
size[1] = height;
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_GEOMETRY, size,
ecore_x_netwm_desk_viewports_set(Ecore_X_Window root,
unsigned int *origins, unsigned int n_desks)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_DESKTOP_VIEWPORT,
origins, 2 * n_desks);
}
{
unsigned int layout[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
layout[0] = orientation;
layout[1] = columns;
layout[2] = rows;
ecore_x_netwm_desk_workareas_set(Ecore_X_Window root,
unsigned int *areas, unsigned int n_desks)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_WORKAREA, areas,
4 * n_desks);
}
EAPI void
ecore_x_netwm_desk_current_set(Ecore_X_Window root, unsigned int desk)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_CURRENT_DESKTOP, &desk,
1);
}
{
unsigned int val;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
val = (on) ? 1 : 0;
ecore_x_window_prop_card32_set(root, ECORE_X_ATOM_NET_SHOWING_DESKTOP, &val,
1);
ecore_x_netwm_client_list_set(Ecore_X_Window root,
Ecore_X_Window *p_clients, unsigned int n_clients)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST,
p_clients, n_clients);
}
Ecore_X_Window *p_clients,
unsigned int n_clients)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_CLIENT_LIST_STACKING,
p_clients, n_clients);
}
EAPI void
ecore_x_netwm_client_active_set(Ecore_X_Window root, Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_window_set(root, ECORE_X_ATOM_NET_ACTIVE_WINDOW,
&win, 1);
}
{
XEvent xev;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!root) root = DefaultRootWindow(_ecore_x_disp);
xev.xclient.type = ClientMessage;
EAPI void
ecore_x_netwm_name_set(Ecore_X_Window win, const char *name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name);
}
EAPI int
ecore_x_netwm_name_get(Ecore_X_Window win, char **name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (name)
*name = _ecore_x_window_prop_string_utf8_get(win, ECORE_X_ATOM_NET_WM_NAME);
return 1;
EAPI void
ecore_x_netwm_startup_id_set(Ecore_X_Window win, const char *id)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_STARTUP_ID, id);
}
EAPI int
ecore_x_netwm_startup_id_get(Ecore_X_Window win, char **id)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (id)
*id = _ecore_x_window_prop_string_utf8_get(win, ECORE_X_ATOM_NET_STARTUP_ID);
return 1;
EAPI void
ecore_x_netwm_visible_name_set(Ecore_X_Window win, const char *name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_VISIBLE_NAME,
name);
}
EAPI int
ecore_x_netwm_visible_name_get(Ecore_X_Window win, char **name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (name)
*name = _ecore_x_window_prop_string_utf8_get(win,
ECORE_X_ATOM_NET_WM_VISIBLE_NAME);
EAPI void
ecore_x_netwm_icon_name_set(Ecore_X_Window win, const char *name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME,
name);
}
EAPI int
ecore_x_netwm_icon_name_get(Ecore_X_Window win, char **name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (name)
*name = _ecore_x_window_prop_string_utf8_get(win,
ECORE_X_ATOM_NET_WM_ICON_NAME);
EAPI void
ecore_x_netwm_visible_icon_name_set(Ecore_X_Window win, const char *name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_prop_string_utf8_set(win,
ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME,
name);
EAPI int
ecore_x_netwm_visible_icon_name_get(Ecore_X_Window win, char **name)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (name)
*name = _ecore_x_window_prop_string_utf8_get(win,
ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME);
EAPI void
ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);
}
int ret;
unsigned int tmp;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_DESKTOP,
&tmp, 1);
{
unsigned int strut[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
strut[0] = left;
strut[1] = right;
strut[2] = top;
int ret = 0;
unsigned int strut[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_STRUT, strut, 4);
if (ret != 4)
return 0;
{
unsigned int strut[12];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
strut[0] = left;
strut[1] = right;
strut[2] = top;
int ret = 0;
unsigned int strut[12];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, strut, 12);
if (ret != 12)
return 0;
unsigned int len, icons, i;
int num_ret;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num) *num = 0;
if (icon) *icon = NULL;
{
unsigned int geometry[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
geometry[0] = x;
geometry[1] = y;
geometry[2] = width;
int ret;
unsigned int geometry[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_ICON_GEOMETRY, geometry, 4);
if (ret != 4)
return 0;
{
unsigned int tmp;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
tmp = pid;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_PID,
&tmp, 1);
int ret;
unsigned int tmp;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_PID,
&tmp, 1);
if (pid) *pid = tmp;
EAPI void
ecore_x_netwm_handled_icons_set(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
NULL, 0);
}
ecore_x_netwm_handled_icons_get(Ecore_X_Window win)
{
int ret = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_HANDLED_ICONS,
NULL, 0);
return ret == 0 ? 1 : 0;
EAPI void
ecore_x_netwm_user_time_set(Ecore_X_Window win, unsigned int time)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_USER_TIME,
&time, 1);
}
int ret;
unsigned int tmp;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_USER_TIME,
&tmp, 1);
if (time) *time = tmp;
Ecore_X_Atom *set;
unsigned int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!num)
{
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_NET_WM_STATE);
int num_ret, i;
Ecore_X_Atom *atoms;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num) *num = 0;
if (state) *state = NULL;
{
Ecore_X_Atom atom;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
atom = _ecore_x_netwm_window_type_atom_get(type);
ecore_x_window_prop_atom_set(win, ECORE_X_ATOM_NET_WM_WINDOW_TYPE,
&atom, 1);
int num;
Ecore_X_Atom *atoms = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (type) *type = ECORE_X_WINDOW_TYPE_NORMAL;
num = ecore_x_window_prop_atom_list_get(win,
Ecore_X_Atom *atoms = NULL;
Ecore_X_Window_Type *atoms2 = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (types) *types = NULL;
num = ecore_x_window_prop_atom_list_get(win,
ECORE_X_ATOM_NET_WM_WINDOW_TYPE,
int num, i, ret = 0;
Ecore_X_Atom *atoms, atom;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
num = ecore_x_window_prop_atom_list_get(win, ECORE_X_ATOM_NET_WM_WINDOW_TYPE,
&atoms);
if (num <= 0)
Ecore_X_Atom *set;
unsigned int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!num)
{
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS);
int num_ret, i;
Ecore_X_Atom *atoms;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num) *num = 0;
if (action) *action = NULL;
EAPI void
ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY,
&opacity, 1);
}
int ret;
unsigned int tmp;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_WINDOW_OPACITY,
&tmp, 1);
if (opacity) *opacity = tmp;
{
unsigned int frames[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
frames[0] = fl;
frames[1] = fr;
frames[2] = ft;
int ret = 0;
unsigned int frames[4];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_FRAME_EXTENTS, frames, 4);
if (ret != 4)
return 0;
int ret;
unsigned int tmp;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_SYNC_REQUEST_COUNTER,
&tmp, 1);
if (!win) return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xev.xclient.type = ClientMessage;
xev.xclient.display = _ecore_x_disp;
xev.xclient.window = win;
if (!win) return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncIntToValue(&value, (int)serial);
xev.xclient.type = ClientMessage;
XEvent xev;
if (!win) return;
+
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!root) root = DefaultRootWindow(_ecore_x_disp);
xev.xclient.type = ClientMessage;
XEvent xev;
if (!win) return;
+
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!root) root = DefaultRootWindow(_ecore_x_disp);
xev.xclient.type = ClientMessage;
static Ecore_X_Atom atom = None;
char buf[32];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
snprintf(buf, sizeof(buf), "_NET_WM_CM_S%i", screen);
if (atom == None) atom = XInternAtom(_ecore_x_disp, buf, False);
if (atom == None) return 0;
static Ecore_X_Atom atom = None;
char buf[32];
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
snprintf(buf, sizeof(buf), "_NET_WM_CM_S%i", screen);
if (atom == None) atom = XInternAtom(_ecore_x_disp, buf, False);
if (atom == None) return;
EAPI Ecore_X_Pixmap
ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
if (dep == 0) dep = DefaultDepth(_ecore_x_disp, DefaultScreen(_ecore_x_disp));
return XCreatePixmap(_ecore_x_disp, win, w, h, dep);
EAPI void
ecore_x_pixmap_free(Ecore_X_Pixmap pmap)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XFreePixmap(_ecore_x_disp, pmap);
}
Ecore_X_GC gc, int sx, int sy,
int w, int h, int dx, int dy)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XCopyArea(_ecore_x_disp, pmap, dest, gc, sx, sy, w, h, dx, dy);
}
EAPI void
ecore_x_pixmap_geometry_get(Ecore_X_Pixmap pmap, int *x, int *y, int *w, int *h)
{
- if (pmap)
- ecore_x_drawable_geometry_get(pmap, x, y, w, h);
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ if (pmap) ecore_x_drawable_geometry_get(pmap, x, y, w, h);
}
/**
EAPI int
ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_drawable_depth_get(pmap);
}
void _ecore_mouse_move(unsigned int timestamp, unsigned int xmodifiers, int x, int y, int x_root, int y_root, unsigned int event_window, unsigned int window, unsigned int root_win, int same_screen, int dev, double radx, double rady, double pressure, double angle, double mx, double my, double mrx, double mry);
Ecore_Event_Mouse_Button *_ecore_mouse_button(int event, unsigned int timestamp, unsigned int xmodifiers, unsigned int buttons, int x, int y, int x_root, int y_root, unsigned int event_window, unsigned int window, unsigned int root_win, int same_screen, int dev, double radx, double rady, double pressure, double angle, double mx, double my, double mrx, double mry);
+//#define LOGFNS 1
+
+#ifdef LOGFNS
+#define LOGFN(fl, ln, fn) printf("-ECORE-X: %25s: %5i - %s\n", fl, ln, fn);
+#else
+#define LOGFN(fl, ln, fn)
+#endif
+
#endif
EAPI int
ecore_x_randr_query(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _randr_available;
}
#ifdef ECORE_XRANDR
int mask;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!on)
mask = 0;
else
#ifdef ECORE_XRANDR
Rotation rot, crot;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
rot = XRRRotations(_ecore_x_disp, XRRRootToScreen(_ecore_x_disp, root), &crot);
return rot;
#else
#ifdef ECORE_XRANDR
Rotation crot = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XRRRotations(_ecore_x_disp, XRRRootToScreen(_ecore_x_disp, root), &crot);
return crot;
#else
SizeID sizeid;
Rotation crot;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xrrcfg = XRRGetScreenInfo(_ecore_x_disp, root);
if (!xrrcfg) return;
sizeid = XRRConfigCurrentConfiguration(xrrcfg, &crot);
XRRScreenSize *sizes;
int i, n;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num) *num = 0;
/* we don't have to free sizes, no idea why not */
Rotation rotation;
int n;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
sc = XRRGetScreenInfo(_ecore_x_disp, root);
if (!sc)
{
XRRScreenSize *sizes;
int i, n, size_index = -1;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
sizes = XRRSizes(_ecore_x_disp, XRRRootToScreen(_ecore_x_disp, root), &n);
for (i = 0; i < n; i++)
{
#ifdef ECORE_XRANDR
XRRScreenConfiguration *sc;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
sc = XRRGetScreenInfo(_ecore_x_disp, root);
if (!sc)
{
short *rates;
int i, n;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num) *num = 0;
sc = XRRGetScreenInfo(_ecore_x_disp, root);
XRRScreenSize *sizes;
int i, n, size_index = -1;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
sizes = XRRSizes(_ecore_x_disp, XRRRootToScreen(_ecore_x_disp, root), &n);
for (i = 0; i < n; i++)
{
EAPI Ecore_X_XRegion *
ecore_x_xregion_new()
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return (Ecore_X_XRegion *)XCreateRegion();
}
EAPI void
ecore_x_xregion_free(Ecore_X_XRegion *region)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!region)
return;
EAPI int
ecore_x_xregion_set(Ecore_X_XRegion *region, Ecore_X_GC gc)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSetRegion(_ecore_x_disp, gc, (Region)region);
}
EAPI void
ecore_x_xregion_translate(Ecore_X_XRegion *region, int x, int y)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!region)
return;
EAPI int
ecore_x_xregion_intersect(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XIntersectRegion((Region)r1, (Region)r2, (Region)dst);
}
-int
+EAPI int
ecore_x_xregion_union(Ecore_X_XRegion *dst, Ecore_X_XRegion *r1, Ecore_X_XRegion *r2)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XUnionRegion((Region)r1, (Region)r2, (Region)dst);
}
{
XRectangle xr;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xr.x = rect->x;
xr.y = rect->y;
xr.width = rect->width;
EAPI int
ecore_x_xregion_subtract(Ecore_X_XRegion *dst, Ecore_X_XRegion *rm, Ecore_X_XRegion *rs)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSubtractRegion((Region)rm, (Region)rs, (Region)dst);
}
if (!region)
return 1;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return !XEmptyRegion((Region)region);
}
if (!r1 || !r2)
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XEqualRegion((Region)r1, (Region)r1);
}
if (!region)
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XPointInRegion((Region)region, x, y);
}
if (!region || !rect)
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XRectInRegion((Region)region, rect->x, rect->y, rect->width, rect->height);
}
#ifdef ECORE_XSS
int _screensaver_major, _screensaver_minor;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_screensaver_major = 1;
_screensaver_minor = 0;
XScreenSaverInfo *xss;
int idle;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xss = XScreenSaverAllocInfo();
XScreenSaverQueryInfo(_ecore_x_disp, RootWindow(_ecore_x_disp, DefaultScreen(_ecore_x_disp)), xss);
idle = xss->idle / 1000;
EAPI void
ecore_x_screensaver_set(int timeout, int interval, int prefer_blanking, int allow_exposures)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetScreenSaver(_ecore_x_disp, timeout, interval, prefer_blanking, allow_exposures);
}
{
int pto, pint, pblank, pexpo;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, timeout, pint, pblank, pexpo);
}
{
int pto, pint, pblank, pexpo;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pto;
}
{
int pto, pint, pblank, pexpo;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, pint, blank, pexpo);
}
{
int pto, pint, pblank, pexpo;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pblank;
}
{
int pto, pint, pblank, pexpo;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, pint, pblank, expose);
}
{
int pto, pint, pblank, pexpo;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pexpo;
}
{
int pto, pint, pblank, pexpo;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
XSetScreenSaver(_ecore_x_disp, pto, interval, pblank, pexpo);
}
{
int pto, pint, pblank, pexpo;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XGetScreenSaver(_ecore_x_disp, &pto, &pint, &pblank, &pexpo);
return pint;
}
#ifdef ECORE_XSS
Ecore_X_Window root;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
root = DefaultRootWindow(_ecore_x_disp);
if (on)
XScreenSaverSelectInput(_ecore_x_disp, root, ScreenSaverNotifyMask);
EAPI int
ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_PRIMARY);
}
EAPI int
ecore_x_selection_primary_clear(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_PRIMARY);
}
EAPI int
ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_SECONDARY);
}
EAPI int
ecore_x_selection_secondary_clear(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_SECONDARY);
}
EAPI int
ecore_x_selection_xdnd_set(Ecore_X_Window w, const void *data, int size)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_XDND);
}
EAPI int
ecore_x_selection_xdnd_clear(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_XDND);
}
EAPI int
ecore_x_selection_clipboard_set(Ecore_X_Window w, const void *data, int size)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(w, data, size, ECORE_X_ATOM_SELECTION_CLIPBOARD);
}
EAPI int
ecore_x_selection_clipboard_clear(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_selection_set(None, NULL, 0, ECORE_X_ATOM_SELECTION_CLIPBOARD);
}
EAPI void
ecore_x_selection_primary_request(Ecore_X_Window w, const char *target)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_PRIMARY, target);
}
EAPI void
ecore_x_selection_secondary_request(Ecore_X_Window w, const char *target)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_SECONDARY, target);
}
Ecore_X_Atom atom;
Ecore_X_DND_Target *_target;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_target = _ecore_x_dnd_target_get();
atom = _ecore_x_selection_target_atom_get(target);
XConvertSelection(_ecore_x_disp, ECORE_X_ATOM_SELECTION_XDND, atom,
EAPI void
ecore_x_selection_clipboard_request(Ecore_X_Window w, const char *target)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_selection_request(w, ECORE_X_ATOM_SELECTION_CLIPBOARD, target);
}
{
Ecore_X_Selection_Converter *cnv;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
cnv = converters;
if (converters)
{
if (!func || !target)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
x_target = _ecore_x_selection_target_atom_get(target);
ecore_x_selection_converter_atom_add(x_target, func);
{
Ecore_X_Selection_Converter *cnv, *prev_cnv;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
prev_cnv = NULL;
cnv = converters;
if (!target)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
x_target = _ecore_x_selection_target_atom_get(target);
ecore_x_selection_converter_atom_del(x_target);
}
XEvent xev;
XSelectionEvent xnotify;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xnotify.type = SelectionNotify;
xnotify.display = _ecore_x_disp;
xnotify.requestor = requestor;
int size;
char *tgt_str;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
sel = _ecore_x_selection_get(selection);
tgt_str = _ecore_x_selection_target_get(target);
if (!data || !size)
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!strcmp(target, ECORE_X_SELECTION_TARGET_TEXT))
style = XTextStyle;
else if (!strcmp(target, ECORE_X_SELECTION_TARGET_COMPOUND_TEXT))
if (!target)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
prs = parsers;
if (parsers)
{
if (!target)
return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
prev_prs = NULL;
prs = parsers;
XSyncAlarmAttributes values;
XSyncValue init;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncIntToValue(&init, 0);
XSyncSetCounter(_ecore_x_disp, counter, init);
EAPI int
ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return XSyncDestroyAlarm(_ecore_x_disp, alarm);
}
EAPI int
ecore_x_sync_counter_query(Ecore_X_Sync_Counter counter, unsigned int *val)
{
- XSyncValue value;
-
- if (XSyncQueryCounter(_ecore_x_disp, counter, &value))
- {
- *val = (unsigned int) XSyncValueLow32(value);
- return 1;
- }
-
- return 0;
+ XSyncValue value;
+
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ if (XSyncQueryCounter(_ecore_x_disp, counter, &value))
+ {
+ *val = (unsigned int) XSyncValueLow32(value);
+ return 1;
+ }
+
+ return 0;
}
EAPI Ecore_X_Sync_Counter
XSyncCounter counter;
XSyncValue v;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncIntToValue(&v, val);
counter = XSyncCreateCounter(_ecore_x_disp, v);
return counter;
EAPI void
ecore_x_sync_counter_free(Ecore_X_Sync_Counter counter)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncDestroyCounter(_ecore_x_disp, counter);
}
{
XSyncValue v;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncIntToValue(&v, by);
XSyncChangeCounter(_ecore_x_disp, counter, v);
}
XSyncWaitCondition cond;
XSyncValue v, v2;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSyncQueryCounter(_ecore_x_disp, counter, &v);
XSyncIntToValue(&v, val);
XSyncIntToValue(&v2, val + 1);
KeyCode keycode = 0;
KeySym keysym;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!strncmp(key, "Keycode-", 8))
keycode = atoi(key + 8);
else
KeyCode keycode = 0;
KeySym keysym;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!strncmp(key, "Keycode-", 8))
keycode = atoi(key + 8);
else
KeySym keysym = 0;
int shift = 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!strncmp(key, "Keycode-", 8))
keycode = atoi(key + 8);
else
Window win;
XSetWindowAttributes attr;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (parent == 0) parent = DefaultRootWindow(_ecore_x_disp);
attr.backing_store = NotUseful;
attr.override_redirect = False;
Window win;
XSetWindowAttributes attr;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (parent == 0) parent = DefaultRootWindow(_ecore_x_disp);
attr.backing_store = NotUseful;
attr.override_redirect = True;
Window win;
XSetWindowAttributes attr;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (parent == 0) parent = DefaultRootWindow(_ecore_x_disp);
attr.override_redirect = True;
attr.do_not_propagate_mask = NoEventMask;
char **argv;
XTextProperty xprop;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
/*
* Set WM_CLIENT_MACHINE.
*/
{
XWindowChanges xwc;
- if (!win)
- return;
+ if (!win) return;
+
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xwc.x = x;
xwc.y = y;
/* sorry sir, deleting the root window doesn't sound like
* a smart idea.
*/
- if (win)
- XDestroyWindow(_ecore_x_disp, win);
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ if (win) XDestroyWindow(_ecore_x_disp, win);
}
/**
{
int i, j;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (ignore)
{
if (ignore_list)
/* sorry sir, deleting the root window doesn't sound like
* a smart idea.
*/
- if (!win)
- return;
+ if (!win) return;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
xev.xclient.type = ClientMessage;
xev.xclient.display = _ecore_x_disp;
xev.xclient.window = win;
EAPI void
ecore_x_window_show(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XMapWindow(_ecore_x_disp, win);
}
unsigned int uidum;
/* ICCCM: SEND unmap event... */
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
root = win;
if (ScreenCount(_ecore_x_disp) == 1)
root = DefaultRootWindow(_ecore_x_disp);
EAPI void
ecore_x_window_move(Ecore_X_Window win, int x, int y)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XMoveWindow(_ecore_x_disp, win, x, y);
}
EAPI void
ecore_x_window_resize(Ecore_X_Window win, int w, int h)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (w < 1) w = 1;
if (h < 1) h = 1;
XResizeWindow(_ecore_x_disp, win, w, h);
EAPI void
ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (w < 1) w = 1;
if (h < 1) h = 1;
XMoveResizeWindow(_ecore_x_disp, win, x, y, w, h);
EAPI void
ecore_x_window_focus(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
// XSetInputFocus(_ecore_x_disp, win, RevertToNone, CurrentTime);
// XSetInputFocus(_ecore_x_disp, win, RevertToPointerRoot, CurrentTime);
EAPI void
ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time t)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
// XSetInputFocus(_ecore_x_disp, win, RevertToNone, t);
// XSetInputFocus(_ecore_x_disp, win, PointerRoot, t);
Window win;
int revert_mode;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
win = 0;
-
XGetInputFocus(_ecore_x_disp, &win, &revert_mode);
return win;
}
EAPI void
ecore_x_window_raise(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XRaiseWindow(_ecore_x_disp, win);
}
EAPI void
ecore_x_window_lower(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XLowerWindow(_ecore_x_disp, win);
}
EAPI void
ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (new_parent == 0) new_parent = DefaultRootWindow(_ecore_x_disp);
XReparentWindow(_ecore_x_disp, win, new_parent, x, y);
}
{
int dummy_x, dummy_y;
- if (win == 0)
- win = DefaultRootWindow(_ecore_x_disp);
-
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
ecore_x_drawable_geometry_get(win, &dummy_x, &dummy_y, w, h);
}
EAPI void
ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h)
{
- if (!win)
- win = DefaultRootWindow(_ecore_x_disp);
-
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ if (!win) win = DefaultRootWindow(_ecore_x_disp);
ecore_x_drawable_geometry_get(win, x, y, w, h);
}
EAPI int
ecore_x_window_border_width_get(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* doesn't make sense to call this on a root window */
- if (!win)
- return 0;
-
+ if (!win) return 0;
return ecore_x_drawable_border_width_get(win);
}
EAPI void
ecore_x_window_border_width_set(Ecore_X_Window win, int width)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* doesn't make sense to call this on a root window */
- if (!win)
- return;
-
+ if (!win) return;
XSetWindowBorderWidth (_ecore_x_disp, win, width);
}
EAPI int
ecore_x_window_depth_get(Ecore_X_Window win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_drawable_depth_get(win);
}
EAPI void
ecore_x_window_cursor_show(Ecore_X_Window win, int show)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
if (!show)
{
EAPI void
ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (c == 0)
XUndefineCursor(_ecore_x_disp, win);
else
{
XWindowAttributes attr;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return (XGetWindowAttributes(_ecore_x_disp, win, &attr) &&
(attr.map_state == IsViewable));
}
EAPI Ecore_X_Window
ecore_x_window_shadow_tree_at_xy_with_skip_get(Ecore_X_Window base, int x, int y, Ecore_X_Window *skip, int skip_num)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_window_shadow_tree_at_xy_get(base, 0, 0, x, y, skip, skip_num);
}
Shadow *s;
int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!shadow_base)
{
_ecore_x_window_tree_shadow_populate();
EAPI void
ecore_x_window_shadow_tree_flush(void)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_x_window_tree_shadow_free();
}
{
XWindowAttributes att;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetWindowAttributes(_ecore_x_disp, win, &att)) return 0;
return att.root;
}
int i, j, wx, wy, ww, wh;
unsigned int num;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!ecore_x_window_visible_get(base))
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_geometry_get(base, &wx, &wy, &ww, &wh);
wx += bx;
wy += by;
if (!((x >= wx) && (y >= wy) && (x < (wx + ww)) && (y < (wy + wh))))
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XQueryTree(_ecore_x_disp, base, &root_win, &parent_win, &list, &num))
return base;
{
Ecore_X_Window win, root;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* FIXME: Proper function to determine current root/virtual root
* window missing here */
root = DefaultRootWindow(_ecore_x_disp);
{
Ecore_X_Window win, root;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* FIXME: Proper function to determine current root/virtual root
* window missing here */
root = DefaultRootWindow(_ecore_x_disp);
{
Ecore_X_Window win;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_grab();
win = _ecore_x_window_at_xy_get(begin, 0, 0, x, y, NULL, 0);
ecore_x_ungrab();
Window root, parent, *children = NULL;
unsigned int num;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XQueryTree(_ecore_x_disp, win, &root, &parent, &children, &num))
return 0;
if (children)
Colormap map;
XColor col;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
col.red = r;
col.green = g;
col.blue = b;
{
XSetWindowAttributes att;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.win_gravity = grav;
XChangeWindowAttributes(_ecore_x_disp, win, CWWinGravity, &att);
}
{
XSetWindowAttributes att;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.bit_gravity = grav;
XChangeWindowAttributes(_ecore_x_disp, win, CWBitGravity, &att);
}
EAPI void
ecore_x_window_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pmap)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XSetWindowBackgroundPixmap(_ecore_x_disp, win, pmap);
}
EAPI void
ecore_x_window_area_clear(Ecore_X_Window win, int x, int y, int w, int h)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XClearArea(_ecore_x_disp, win, x, y, w, h, False);
}
EAPI void
ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XClearArea(_ecore_x_disp, win, x, y, w, h, True);
}
{
XSetWindowAttributes att;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
att.override_redirect = override;
XChangeWindowAttributes(_ecore_x_disp, win, CWOverrideRedirect, &att);
}
ecore_x_window_manager_argb_new(Ecore_X_Window parent, int x, int y, int w, int h)
{
#ifdef ECORE_XRENDER
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_window_argb_internal_new(parent, x, y, w, h, 1, 0);
#else
return 0;
ecore_x_window_argb_new(Ecore_X_Window parent, int x, int y, int w, int h)
{
#ifdef ECORE_XRENDER
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_window_argb_internal_new(parent, x, y, w, h, 0, 0);
#else
return 0;
ecore_x_window_override_argb_new(Ecore_X_Window parent, int x, int y, int w, int h)
{
#ifdef ECORE_XRENDER
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _ecore_x_window_argb_internal_new(parent, x, y, w, h, 1, 0);
#else
return 0;
long *v2;
unsigned int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
v2 = malloc(num * sizeof(long));
if (!v2)
return;
unsigned int i;
int num;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
prop_ret = NULL;
if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
XA_CARDINAL, &type_ret, &format_ret, &num_ret,
unsigned int i, *val;
int num;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
*plst = NULL;
prop_ret = NULL;
if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
unsigned long *pl;
unsigned int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
pl = malloc(num * sizeof(long));
if (!pl)
return;
int num;
unsigned i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
prop_ret = NULL;
if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
type, &type_ret, &format_ret, &num_ret,
int num;
unsigned i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
*val = NULL;
prop_ret = NULL;
if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
Ecore_X_ID *lst;
int i, num;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
num = ecore_x_window_prop_xid_list_get(win, atom, type, &lst);
if (num < 0)
return; /* Error - assuming invalid window */
ecore_x_window_prop_atom_set(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom * lst, unsigned int num)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_set(win, atom, XA_ATOM, lst, num);
}
ecore_x_window_prop_atom_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom * lst, unsigned int len)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_get(win, atom, XA_ATOM, lst, len);
}
ecore_x_window_prop_atom_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom ** plst)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_list_get(win, atom, XA_ATOM, plst);
}
ecore_x_window_prop_atom_list_change(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Atom item, int op)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_list_change(win, atom, XA_ATOM, item, op);
}
ecore_x_window_prop_window_set(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Window * lst, unsigned int num)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_window_prop_xid_set(win, atom, XA_WINDOW, lst, num);
}
ecore_x_window_prop_window_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Window * lst, unsigned int len)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_get(win, atom, XA_WINDOW, lst, len);
}
ecore_x_window_prop_window_list_get(Ecore_X_Window win, Ecore_X_Atom atom,
Ecore_X_Window ** plst)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
return ecore_x_window_prop_xid_list_get(win, atom, XA_WINDOW, plst);
}
EAPI void
ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom property, Ecore_X_Atom type, int size, void *data, int number)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
if (size != 32)
XChangeProperty(_ecore_x_disp, win, property, type, size, PropModeReplace,
else /* we can't store the retrieved data, so just return */
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!win) win = DefaultRootWindow(_ecore_x_disp);
ret = XGetWindowProperty(_ecore_x_disp, win, property, 0, LONG_MAX,
EAPI void
ecore_x_window_prop_property_del(Ecore_X_Window win, Ecore_X_Atom property)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XDeleteProperty(_ecore_x_disp, win, property);
}
Atom *atom_ret;
int num = 0, i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num_ret) *num_ret = 0;
atom_ret = XListProperties(_ecore_x_disp, win, &num);
{
XTextProperty xtp;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
xtp.value = (unsigned char *)str;
xtp.format = 8;
XTextProperty xtp;
char *str = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0) win = DefaultRootWindow(_ecore_x_disp);
if (XGetTextProperty(_ecore_x_disp, win, &xtp, type))
{
if (protocol >= ECORE_X_WM_PROTOCOL_NUM)
return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
proto = _ecore_x_atoms_wm_protocols[protocol];
if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count))
int i, protos_count = 0;
Ecore_X_WM_Protocol *prot_ret = NULL;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count))
return NULL;
EAPI void
ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet);
}
EAPI void
ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeSet);
}
EAPI void
ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeSet);
}
{
XRectangle rect;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
rect.x = x;
rect.y = y;
rect.width = w;
XRectangle *rect = NULL;
int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num > 0)
{
rect = malloc(sizeof(XRectangle) * num);
EAPI void
ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, 0, 0, shape_win, ShapeBounding, ShapeUnion);
}
EAPI void
ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win, int x, int y)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
XShapeCombineShape(_ecore_x_disp, win, ShapeBounding, x, y, shape_win, ShapeBounding, ShapeUnion);
}
{
XRectangle rect;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
rect.x = x;
rect.y = y;
rect.width = w;
{
XRectangle rect;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
rect.x = x;
rect.y = y;
rect.width = w;
XRectangle *rect = NULL;
int i;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (num > 0)
{
rect = malloc(sizeof(XRectangle) * num);
Ecore_X_Rectangle *rects = NULL;
int i, num = 0, ord;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
rect = XShapeGetRectangles(_ecore_x_disp, win, ShapeBounding, &num, &ord);
if (rect)
{
EAPI void
ecore_x_window_shape_events_select(Ecore_X_Window win, int on)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (on)
XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
else
EAPI void
ecore_x_window_shape_input_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
#ifdef ShapeInput
XShapeCombineMask(_ecore_x_disp, win, ShapeInput, 0, 0, mask, ShapeSet);
#else
if (!_ecore_x_xi2_devs) return 0;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
for (i = 0; i < _ecore_x_xi2_num; i++)
{
XIDeviceInfo *dev = &(_ecore_x_xi2_devs[i]);
#ifdef ECORE_XINERAMA
int event_base, error_base;
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (_xin_info) XFree(_xin_info);
_xin_info = NULL;
if (XineramaQueryExtension(_ecore_x_disp, &event_base, &error_base))
EAPI int
ecore_x_xinerama_screen_geometry_get(int screen, int *x, int *y, int *w, int *h)
{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
#ifdef ECORE_XINERAMA
if (_xin_info)
{