* Headers/Additions/GNUstepGUI/GSDisplayServer.h

* Source/GSDisplayServer.m: Add new method -setIgnoreMouse::
        * with
        empty implementation.
        * Source/NSWindow.m (-setIgnoresMouseEvents:): Use this new
        * method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36854 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2013-07-08 20:42:49 +00:00
parent 4fe34147c1
commit 32299abf5b
4 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2013-07-08 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Additions/GNUstepGUI/GSDisplayServer.h
* Source/GSDisplayServer.m: Add new method -setIgnoreMouse:: with
empty implementation.
* Source/NSWindow.m (-setIgnoresMouseEvents:): Use this new method.
2013-07-08 German A. Arias <german@xelalug.org>
* Source/NSMenuView.m (_trackWithEvent:startingMenuView:):

View file

@ -175,6 +175,7 @@ APPKIT_EXPORT NSString *GSScreenNumber;
- (void) freecursor: (void*) cid;
- (void) setParentWindow: (int)parentWin
forChildWindow: (int)childWin;
- (void) setIgnoreMouse: (BOOL)ignoreMouse : (int)win;
@end

View file

@ -944,6 +944,11 @@ GSCurrentServer(void)
[self subclassResponsibility: _cmd];
}
- (void) setIgnoreMouse: (BOOL)ignoreMouse : (int)win
{
// Do nothing if not overridden by subclass
}
@end
/* ----------------------------------------------------------------------- */

View file

@ -3234,6 +3234,7 @@ resetCursorRectsForView(NSView *theView)
- (void) setIgnoresMouseEvents: (BOOL)flag
{
_f.ignores_mouse_events = flag;
[GSServerForWindow(self) setIgnoreMouse: flag : _windowNum];
}
- (NSEvent*) currentEvent