summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_x/xlib
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/xlib')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c60
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c8
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c60
3 files changed, 128 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c
index 4530b0c..0a7b3c8 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x.c
@@ -1957,6 +1957,66 @@ ecore_x_mouse_up_send(Ecore_X_Window win,
1957 return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev) ? EINA_TRUE : EINA_FALSE; 1957 return XSendEvent(_ecore_x_disp, win, True, ButtonReleaseMask, &xev) ? EINA_TRUE : EINA_FALSE;
1958} 1958}
1959 1959
1960EAPI Eina_Bool
1961ecore_x_mouse_in_send(Ecore_X_Window win,
1962 int x,
1963 int y)
1964{
1965 XEvent xev;
1966 XWindowAttributes att;
1967 Window tw;
1968 int rx, ry;
1969
1970 LOGFN(__FILE__, __LINE__, __FUNCTION__);
1971 XGetWindowAttributes(_ecore_x_disp, win, &att);
1972 XTranslateCoordinates(_ecore_x_disp, win, att.root, x, y, &rx, &ry, &tw);
1973 xev.xcrossing.type = EnterNotify;
1974 xev.xcrossing.window = win;
1975 xev.xcrossing.root = att.root;
1976 xev.xcrossing.subwindow = win;
1977 xev.xcrossing.time = _ecore_x_event_last_time;
1978 xev.xcrossing.x = x;
1979 xev.xcrossing.y = y;
1980 xev.xcrossing.x_root = rx;
1981 xev.xcrossing.y_root = ry;
1982 xev.xcrossing.mode = NotifyNormal;
1983 xev.xcrossing.detail = NotifyNonlinear;
1984 xev.xcrossing.same_screen = 1;
1985 xev.xcrossing.focus = 0;
1986 xev.xcrossing.state = 0;
1987 return XSendEvent(_ecore_x_disp, win, True, EnterWindowMask, &xev) ? EINA_TRUE : EINA_FALSE;
1988}
1989
1990EAPI Eina_Bool
1991ecore_x_mouse_out_send(Ecore_X_Window win,
1992 int x,
1993 int y)
1994{
1995 XEvent xev;
1996 XWindowAttributes att;
1997 Window tw;
1998 int rx, ry;
1999
2000 LOGFN(__FILE__, __LINE__, __FUNCTION__);
2001 XGetWindowAttributes(_ecore_x_disp, win, &att);
2002 XTranslateCoordinates(_ecore_x_disp, win, att.root, x, y, &rx, &ry, &tw);
2003 xev.xcrossing.type = LeaveNotify;
2004 xev.xcrossing.window = win;
2005 xev.xcrossing.root = att.root;
2006 xev.xcrossing.subwindow = win;
2007 xev.xcrossing.time = _ecore_x_event_last_time;
2008 xev.xcrossing.x = x;
2009 xev.xcrossing.y = y;
2010 xev.xcrossing.x_root = rx;
2011 xev.xcrossing.y_root = ry;
2012 xev.xcrossing.mode = NotifyNormal;
2013 xev.xcrossing.detail = NotifyNonlinear;
2014 xev.xcrossing.same_screen = 1;
2015 xev.xcrossing.focus = 0;
2016 xev.xcrossing.state = 0;
2017 return XSendEvent(_ecore_x_disp, win, True, LeaveWindowMask, &xev) ? EINA_TRUE : EINA_FALSE;
2018}
2019
1960EAPI void 2020EAPI void
1961ecore_x_focus_reset(void) 2021ecore_x_focus_reset(void)
1962{ 2022{
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c
index 7a8bffa..56e75cc 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c
@@ -284,6 +284,14 @@ _ecore_x_atoms_init(void)
284 { "_E_ILLUME_CLIPBOARD_ON", &ECORE_X_ATOM_E_ILLUME_CLIPBOARD_ON }, 284 { "_E_ILLUME_CLIPBOARD_ON", &ECORE_X_ATOM_E_ILLUME_CLIPBOARD_ON },
285 { "_E_ILLUME_CLIPBOARD_OFF", &ECORE_X_ATOM_E_ILLUME_CLIPBOARD_OFF }, 285 { "_E_ILLUME_CLIPBOARD_OFF", &ECORE_X_ATOM_E_ILLUME_CLIPBOARD_OFF },
286 { "_E_ILLUME_CLIPBOARD_GEOMETRY", &ECORE_X_ATOM_E_ILLUME_CLIPBOARD_GEOMETRY }, 286 { "_E_ILLUME_CLIPBOARD_GEOMETRY", &ECORE_X_ATOM_E_ILLUME_CLIPBOARD_GEOMETRY },
287 { "_E_ILLUME_ACCESS_CONTROL", &ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL },
288 { "_E_ILLUME_ACCESS_ACTION_NEXT", &ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_NEXT },
289 { "_E_ILLUME_ACCESS_ACTION_PREV", &ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_PREV },
290 { "_E_ILLUME_ACCESS_ACTION_ACTIVATE", &ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_ACTIVATE },
291 { "_E_ILLUME_ACCESS_ACTION_READ", &ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ },
292 { "_E_ILLUME_ACCESS_ACTION_READ_NEXT", &ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ_NEXT },
293 { "_E_ILLUME_ACCESS_ACTION_READ_PREV", &ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ_PREV },
294
287 { "_E_COMP_SYNC_COUNTER", &ECORE_X_ATOM_E_COMP_SYNC_COUNTER }, 295 { "_E_COMP_SYNC_COUNTER", &ECORE_X_ATOM_E_COMP_SYNC_COUNTER },
288 { "_E_COMP_SYNC_DRAW_DONE", &ECORE_X_ATOM_E_COMP_SYNC_DRAW_DONE }, 296 { "_E_COMP_SYNC_DRAW_DONE", &ECORE_X_ATOM_E_COMP_SYNC_DRAW_DONE },
289 { "_E_COMP_SYNC_SUPPORTED", &ECORE_X_ATOM_E_COMP_SYNC_SUPPORTED }, 297 { "_E_COMP_SYNC_SUPPORTED", &ECORE_X_ATOM_E_COMP_SYNC_SUPPORTED },
diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c
index 4bd5218..0ac2035 100644
--- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c
+++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_e.c
@@ -376,6 +376,66 @@ ecore_x_e_illume_home_del_send(Ecore_X_Window win)
376} 376}
377 377
378EAPI void 378EAPI void
379ecore_x_e_illume_access_action_next_send(Ecore_X_Window win)
380{
381 LOGFN(__FILE__, __LINE__, __FUNCTION__);
382 ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL,
383 win,
384 ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_NEXT,
385 0, 0, 0, 0);
386}
387
388EAPI void
389ecore_x_e_illume_access_action_prev_send(Ecore_X_Window win)
390{
391 LOGFN(__FILE__, __LINE__, __FUNCTION__);
392 ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL,
393 win,
394 ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_PREV,
395 0, 0, 0, 0);
396}
397
398EAPI void
399ecore_x_e_illume_access_action_activate_send(Ecore_X_Window win)
400{
401 LOGFN(__FILE__, __LINE__, __FUNCTION__);
402 ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL,
403 win,
404 ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_ACTIVATE,
405 0, 0, 0, 0);
406}
407
408EAPI void
409ecore_x_e_illume_access_action_read_send(Ecore_X_Window win)
410{
411 LOGFN(__FILE__, __LINE__, __FUNCTION__);
412 ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL,
413 win,
414 ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ,
415 0, 0, 0, 0);
416}
417
418EAPI void
419ecore_x_e_illume_access_action_read_next_send(Ecore_X_Window win)
420{
421 LOGFN(__FILE__, __LINE__, __FUNCTION__);
422 ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL,
423 win,
424 ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ_NEXT,
425 0, 0, 0, 0);
426}
427
428EAPI void
429ecore_x_e_illume_access_action_read_prev_send(Ecore_X_Window win)
430{
431 LOGFN(__FILE__, __LINE__, __FUNCTION__);
432 ecore_x_client_message32_send(win, ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL,
433 win,
434 ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ_PREV,
435 0, 0, 0, 0);
436}
437
438EAPI void
379ecore_x_e_illume_drag_set(Ecore_X_Window win, 439ecore_x_e_illume_drag_set(Ecore_X_Window win,
380 unsigned int drag) 440 unsigned int drag)
381{ 441{