Added support for WindowMaker's WMFHideApplication action.

This commit is contained in:
Sergii Stoian 2019-04-05 14:46:05 +03:00
parent f9958176db
commit b492ac87cd
5 changed files with 67 additions and 10 deletions

View file

@ -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)
{