Attempt to get the X1 and X2 button state on X11 by using the current event state instead of direct X11 query.