X11 Mouse Movement Event

后端 未结 2 506
夕颜
夕颜 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: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.

提交回复
热议问题