X11 Mouse Movement Event

后端 未结 2 486
夕颜
夕颜 2021-01-02 23:02

When creating a Window in XLib

  1. What are the masks I provide to the SetWindowAttributes.event_mask member?
  2. What do I have to pass to the
相关标签:
2条回答
  • 2021-01-02 23:52

    XLib is pretty well documented. For example XLib Programming Manual: Event Masks

    0 讨论(0)
  • 2021-01-02 23:59

    The first three are well-documented, I think.

    To determine whether the mouse is over your window, listen to Enter and Leave events. The xev utility is a great way to understand what events exist in the X window system, and when they are sent.

    0 讨论(0)
提交回复
热议问题