mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:20:38 +00:00
tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29044 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2bd0b411e
commit
e954a93ff3
4 changed files with 30 additions and 38 deletions
|
@ -1821,6 +1821,7 @@ See Also: -runModalForWindow:
|
|||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Discard %@", event);
|
||||
event = nil; // Ignore/discard this event.
|
||||
}
|
||||
}
|
||||
|
@ -1845,8 +1846,9 @@ See Also: -runModalForWindow:
|
|||
/*
|
||||
* Check to see if the window has gone away - if so, end session.
|
||||
*/
|
||||
if ([[self windows] indexOfObjectIdenticalTo: _session->window] == NSNotFound
|
||||
|| ![_session->window isVisible])
|
||||
if ([[self windows] indexOfObjectIdenticalTo: _session->window]
|
||||
== NSNotFound
|
||||
|| ![_session->window isVisible])
|
||||
{
|
||||
[self stopModal];
|
||||
}
|
||||
|
@ -2045,11 +2047,11 @@ See -runModalForWindow:
|
|||
if (!theEvent)
|
||||
NSDebugLLog(@"NSEvent", @"NSEvent is nil!\n");
|
||||
if (type == NSMouseMoved)
|
||||
NSDebugLLog(@"NSMotionEvent", @"Send move (%d) to window %d",
|
||||
type, [window windowNumber]);
|
||||
NSDebugLLog(@"NSMotionEvent", @"Send move (%d) to %@",
|
||||
type, window);
|
||||
else
|
||||
NSDebugLLog(@"NSEvent", @"Send NSEvent type: %d to window %d",
|
||||
type, [window windowNumber]);
|
||||
NSDebugLLog(@"NSEvent", @"Send NSEvent type: %d to %@",
|
||||
type, window);
|
||||
if (window)
|
||||
[window sendEvent: theEvent];
|
||||
else if (type == NSRightMouseDown)
|
||||
|
@ -3877,7 +3879,7 @@ struct _DelegateWrapper
|
|||
{
|
||||
_key_window = obj;
|
||||
}
|
||||
else
|
||||
else if (_key_window != obj)
|
||||
{
|
||||
NSLog(@"Bogus attempt to set key window");
|
||||
}
|
||||
|
@ -3891,7 +3893,7 @@ struct _DelegateWrapper
|
|||
{
|
||||
_main_window = obj;
|
||||
}
|
||||
else
|
||||
else if (_main_window != obj)
|
||||
{
|
||||
NSLog(@"Bogus attempt to set main window");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue