mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
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:
parent
938a6dd65a
commit
f126c3ced8
2 changed files with 31 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue