MenuDetectEvent.x

the display-relative x coordinate of the pointer at the time the context menu trigger occurred

class MenuDetectEvent
int x;

Meta