forked from enlightenment/efl
parent
8dd92acc1f
commit
ba83b178da
|
@ -1329,21 +1329,23 @@ ecore_x_cursor_size_get(void)
|
||||||
EAPI int
|
EAPI int
|
||||||
ecore_x_pointer_grab(Ecore_X_Window win)
|
ecore_x_pointer_grab(Ecore_X_Window win)
|
||||||
{
|
{
|
||||||
return XGrabPointer(_ecore_x_disp, win, False,
|
if (XGrabPointer(_ecore_x_disp, win, False,
|
||||||
ButtonPressMask | ButtonReleaseMask |
|
ButtonPressMask | ButtonReleaseMask |
|
||||||
EnterWindowMask | LeaveWindowMask | PointerMotionMask,
|
EnterWindowMask | LeaveWindowMask | PointerMotionMask,
|
||||||
GrabModeAsync, GrabModeAsync,
|
GrabModeAsync, GrabModeAsync,
|
||||||
None, None, CurrentTime);
|
None, None, CurrentTime) == GrabSuccess) return 1;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
ecore_x_pointer_confine_grab(Ecore_X_Window win)
|
ecore_x_pointer_confine_grab(Ecore_X_Window win)
|
||||||
{
|
{
|
||||||
return XGrabPointer(_ecore_x_disp, win, False,
|
if (XGrabPointer(_ecore_x_disp, win, False,
|
||||||
ButtonPressMask | ButtonReleaseMask |
|
ButtonPressMask | ButtonReleaseMask |
|
||||||
EnterWindowMask | LeaveWindowMask | PointerMotionMask,
|
EnterWindowMask | LeaveWindowMask | PointerMotionMask,
|
||||||
GrabModeAsync, GrabModeAsync,
|
GrabModeAsync, GrabModeAsync,
|
||||||
win, None, CurrentTime);
|
win, None, CurrentTime) == GrabSuccess) return 1;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
@ -1361,9 +1363,10 @@ ecore_x_pointer_warp(Ecore_X_Window win, int x, int y)
|
||||||
EAPI int
|
EAPI int
|
||||||
ecore_x_keyboard_grab(Ecore_X_Window win)
|
ecore_x_keyboard_grab(Ecore_X_Window win)
|
||||||
{
|
{
|
||||||
return XGrabKeyboard(_ecore_x_disp, win, False,
|
if (XGrabKeyboard(_ecore_x_disp, win, False,
|
||||||
GrabModeAsync, GrabModeAsync,
|
GrabModeAsync, GrabModeAsync,
|
||||||
CurrentTime);
|
CurrentTime) == GrabSuccess) return 1;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
|
Loading…
Reference in New Issue