mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
Send double-click on appicon to the WindowMaker. Old code sent to WM only single-click.
This commit is contained in:
parent
233c129a5c
commit
21f38f8060
2 changed files with 10 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue