mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +00:00
Added support for WindowMaker's WMFHideApplication action.
This commit is contained in:
parent
f9958176db
commit
b492ac87cd
5 changed files with 67 additions and 10 deletions
|
@ -621,6 +621,21 @@ posixFileDescriptor: (NSPosixFileDescriptor*)fileDescriptor
|
|||
data1: 0
|
||||
data2: 0];
|
||||
}
|
||||
else if ((Atom)xEvent.xclient.data.l[0]
|
||||
== generic._GNUSTEP_WM_HIDE_APP_ATOM)
|
||||
{
|
||||
NSDebugLLog(@"Hide", @"%lu application will be hidden", cWin->number);
|
||||
eventLocation = NSMakePoint(0,0);
|
||||
e = [NSEvent otherEventWithType: NSAppKitDefined
|
||||
location: eventLocation
|
||||
modifierFlags: 0
|
||||
timestamp: 0
|
||||
windowNumber: cWin->number
|
||||
context: gcontext
|
||||
subtype: GSAppKitAppHide
|
||||
data1: 0
|
||||
data2: 0];
|
||||
}
|
||||
else if ((Atom)xEvent.xclient.data.l[0]
|
||||
== generic.WM_TAKE_FOCUS_ATOM)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue