summaryrefslogtreecommitdiffstats
path: root/win/tkWinPointer.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-07 08:08:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-07 08:08:30 (GMT)
commite3aa9176acebb7322734e555e3a593af1c883369 (patch)
tree7981088cb257579d4bcf74b7735557ca697528c7 /win/tkWinPointer.c
parent7abccca6bc53158500a777bed5ee9050ef87827a (diff)
parent3e9c17a69fbe6294b7cbf868930a4e7d6cc9e663 (diff)
downloadtk-e3aa9176acebb7322734e555e3a593af1c883369.zip
tk-e3aa9176acebb7322734e555e3a593af1c883369.tar.gz
tk-e3aa9176acebb7322734e555e3a593af1c883369.tar.bz2
Change XChangeWindowAttributes signature and many others to match Xorg, needed for Cygwin
Diffstat (limited to 'win/tkWinPointer.c')
-rw-r--r--win/tkWinPointer.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c
index 0136d36..7aec2b4 100644
--- a/win/tkWinPointer.c
+++ b/win/tkWinPointer.c
@@ -193,12 +193,13 @@ XGrabKeyboard(
*----------------------------------------------------------------------
*/
-void
+int
XUngrabKeyboard(
Display *display,
Time time)
{
keyboardWinPtr = NULL;
+ return Success;
}
/*
@@ -377,7 +378,7 @@ XWarpPointer(
*----------------------------------------------------------------------
*/
-void
+int
XGetInputFocus(
Display *display,
Window *focus_return,
@@ -388,6 +389,7 @@ XGetInputFocus(
*focus_return = tkwin ? Tk_WindowId(tkwin) : None;
*revert_to_return = RevertToParent;
display->request++;
+ return Success;
}
/*
@@ -407,7 +409,7 @@ XGetInputFocus(
*----------------------------------------------------------------------
*/
-void
+int
XSetInputFocus(
Display *display,
Window focus,
@@ -418,6 +420,7 @@ XSetInputFocus(
if (focus != None) {
SetFocus(Tk_GetHWND(focus));
}
+ return Success;
}
/*