Send double-click on appicon to the WindowMaker. Old code sent to WM only single-click.

This commit is contained in:
Sergii Stoian 2019-04-04 01:22:25 +03:00
parent 233c129a5c
commit 21f38f8060
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 != 2)
break;
}
}