mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
* 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:
parent
4fe34147c1
commit
32299abf5b
4 changed files with 14 additions and 0 deletions
|
@ -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:):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -944,6 +944,11 @@ GSCurrentServer(void)
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (void) setIgnoreMouse: (BOOL)ignoreMouse : (int)win
|
||||
{
|
||||
// Do nothing if not overridden by subclass
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
|
@ -3234,6 +3234,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
- (void) setIgnoresMouseEvents: (BOOL)flag
|
||||
{
|
||||
_f.ignores_mouse_events = flag;
|
||||
[GSServerForWindow(self) setIgnoreMouse: flag : _windowNum];
|
||||
}
|
||||
|
||||
- (NSEvent*) currentEvent
|
||||
|
|
Loading…
Reference in a new issue