You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XServer::get_event should handle most(if not all) of the event types.
It should also wrap the important/relevant members of the event into an enum it returns. Also, fix your naming - match on a ButtonPress, cast to XButtonPressedEvent, and return a ButtonPressed? That's terrible.
The text was updated successfully, but these errors were encountered:
With Enum variants being namespaced now, the ServerEvent variants are named the same as the XEvent ones (just with extra information for a match to act on)
XServer::get_event should handle most(if not all) of the event types.
It should also wrap the important/relevant members of the event into an enum it returns. Also, fix your naming - match on a ButtonPress, cast to XButtonPressedEvent, and return a ButtonPressed? That's terrible.
The text was updated successfully, but these errors were encountered: