The EZ widget library does not handle ClientMessage events in any
sensible way. The default behavior is that the event dispatcher drops
all ClientMessage events except one, a message with message_type
WM_PROTOCOLS
and content XA_WM_DELETE_WINDOW
from your
window manager. (It is sent from your
window manager when you close the window.) For this message, the
default action is to exit, which is not desirable for applications
that uses more than of toplevel widgets. For example, in a file
manager, closing a directory lister should not exist the application.
The EZ widget library includes a routine for applications to hook in their own clientMessages handlers.
void EZ_SetClientMessageHandler(EZ_EventHandler handler)
This function overides the default ClientMessage handler in EZwgl.
If set succesfully, handler
will be invokde whenever the
application receives a ClientMessage event.
Set a NULL
ClientMessage handler reverts to the default
handler.