mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
Merge pull request #8 from trunkmaster/master
Send double-click on appicon to WindowMaker
This commit is contained in:
commit
ba2d592083
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 == 1)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue