generate GSAppKitWindowLeave leave events

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29253 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-01-10 11:29:36 +00:00
parent 938a6dd65a
commit f126c3ced8
2 changed files with 31 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-01-10 Riccardo Mottola <rmottola@users.sf.net>
* Source/win32/w32_activate.m: generate GSAppKitWindowLeave leave
events.
2010-01-08 Fred Kiefer <FredKiefer@gmx.de>
* Source/win32/w32_text_focus.m: Small clean up in focus handling.

View file

@ -41,12 +41,36 @@
{
case WA_ACTIVE: //deactivate
{
// future implimentation if needed
NSEvent *ev;
ev = [NSEvent otherEventWithType: NSAppKitDefined
location: NSMakePoint(0, 0)
modifierFlags: 0
timestamp: 0
windowNumber: (int)lParam
context: GSCurrentContext()
subtype: GSAppKitWindowLeave
data1: 0
data2: 0];
[EVENT_WINDOW(lParam) sendEvent: ev];
}
break;
case WA_CLICKACTIVE: //order back the window
{
// future implimentation if needed
NSEvent *ev;
ev = [NSEvent otherEventWithType: NSAppKitDefined
location: NSMakePoint(0, 0)
modifierFlags: 0
timestamp: 0
windowNumber: (int)lParam
context: GSCurrentContext()
subtype: GSAppKitWindowLeave
data1: 0
data2: 0];
[EVENT_WINDOW(lParam) sendEvent: ev];
}
break;
case WA_INACTIVE: // set currentactive and display