|
|
|
@ -739,7 +739,13 @@ static void processEvent(XEvent *event) |
|
|
|
|
{ |
|
|
|
|
// Custom client message, probably from the window manager
|
|
|
|
|
|
|
|
|
|
if ((Atom) event->xclient.data.l[0] == _glfw.x11.WM_DELETE_WINDOW) |
|
|
|
|
if (event->xclient.message_type == None) |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
if (event->xclient.message_type == _glfw.x11.WM_PROTOCOLS) |
|
|
|
|
{ |
|
|
|
|
if (_glfw.x11.WM_DELETE_WINDOW && |
|
|
|
|
(Atom) event->xclient.data.l[0] == _glfw.x11.WM_DELETE_WINDOW) |
|
|
|
|
{ |
|
|
|
|
// The window manager was asked to close the window, for example by
|
|
|
|
|
// the user pressing a 'close' window decoration button
|
|
|
|
@ -759,6 +765,7 @@ static void processEvent(XEvent *event) |
|
|
|
|
SubstructureNotifyMask | SubstructureRedirectMask, |
|
|
|
|
event); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if (event->xclient.message_type == _glfw.x11.XdndEnter) |
|
|
|
|
{ |
|
|
|
|
// A drag operation has entered the window
|
|
|
|
|