diff --git a/ChangeLog b/ChangeLog index 601fa5b82..b965292a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-10-27 Thomas Gamper + + * Source/GSDisplayServer.m + * Headers/Additions/GNUstepGUI/GSDisplayServer.h: + Add cursor position setter (setMouseLocation:onScreen:). + 2009-10-25 Fred Kiefer * Source/NSGradient.m (-drawInRect:angle:): Correct the math by diff --git a/Headers/Additions/GNUstepGUI/GSDisplayServer.h b/Headers/Additions/GNUstepGUI/GSDisplayServer.h index 7c880055b..cc4daa596 100644 --- a/Headers/Additions/GNUstepGUI/GSDisplayServer.h +++ b/Headers/Additions/GNUstepGUI/GSDisplayServer.h @@ -156,6 +156,7 @@ APPKIT_EXPORT NSString * GSScreenNumber; - (NSPoint) mouseLocationOnScreen: (int)aScreen window: (int *)win; - (BOOL) capturemouse: (int)win; - (void) releasemouse; +- (void) setMouseLocation: (NSPoint)mouseLocation onScreen: (int)aScreen; - (void) hidecursor; - (void) showcursor; - (void) standardcursor: (int) style : (void**)cid; diff --git a/Source/GSDisplayServer.m b/Source/GSDisplayServer.m index ca1c8c9b2..c6f2e4e4e 100644 --- a/Source/GSDisplayServer.m +++ b/Source/GSDisplayServer.m @@ -860,6 +860,12 @@ GSCurrentServer(void) [self subclassResponsibility: _cmd]; } +/** Set mouse cursor position. */ +- (void) setMouseLocation: (NSPoint)mouseLocation onScreen: (int)aScreen +{ + [self subclassResponsibility: _cmd]; +} + /** Hides the cursor */ - (void) hidecursor {