add new msg dispatch method for filtering events

This commit is contained in:
Jinhao
2018-10-23 03:31:34 +08:00
parent 943a9e444d
commit 1247e5c4e4
2 changed files with 31 additions and 7 deletions

View File

@@ -10,8 +10,8 @@ namespace detail
{
struct msg_packet_tag
{
enum kind_t{kind_xevent, kind_mouse_drop, kind_cleanup};
kind_t kind;
enum class pkt_family{xevent, mouse_drop, cleanup};
pkt_family kind;
union
{
XEvent xevent;