* 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:
fredkiefer 2013-07-08 20:42:49 +00:00
parent f04d46ad46
commit 6165cdf0c2
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> 2013-07-08 German A. Arias <german@xelalug.org>
* Source/NSMenuView.m (_trackWithEvent:startingMenuView:): * Source/NSMenuView.m (_trackWithEvent:startingMenuView:):

View file

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

View file

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

View file

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