Merge pull request #8 from trunkmaster/master

Send double-click on appicon to WindowMaker
This commit is contained in:
Fred Kiefer 2019-04-04 16:41:11 +02:00 committed by GitHub
commit ba2d592083
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2019-04-04 Sergii Stoian <stoyan255@ukr.net>
* Source/x11/XGServerEvent.m (processEvent:):
Send double-click on appicon to the WindowMaker.
2019-04-02 Sergii Stoian <stoyan255@gmail.com>
* Source/x11/XGServerWindow.m:

View file

@ -472,10 +472,10 @@ posixFileDescriptor: (NSPosixFileDescriptor*)fileDescriptor
/*
* We must hand over control of our icon/miniwindow
* to Window Maker.
*/
*/
if ((cWin->win_attrs.window_style
& (NSMiniWindowMask | NSIconWindowMask)) != 0
&& eventType == NSLeftMouseDown && clickCount == 1)
& (NSMiniWindowMask | NSIconWindowMask)) != 0
&& eventType == NSLeftMouseDown)
{
if (cWin->parent == None)
break;
@ -484,7 +484,8 @@ posixFileDescriptor: (NSPosixFileDescriptor*)fileDescriptor
XSendEvent(dpy, cWin->parent, True,
ButtonPressMask, &xEvent);
XFlush(dpy);
break;
if (clickCount == 1)
break;
}
}