Lines Matching refs:button
18 * The grab state machine has four states: ungrabbed, button pressed,
19 * grabbed, and button pressed while grabbed. In addition, there are
31 * normally set during an automatic button grab.
35 * during a global grab or an automatic button grab.
61 * some window, b/g means the variable is set to a window if a button
102 * server because a button is down and we want
103 * to make sure that we get the button-up
105 * last mouse button goes up.
384 * it into a global grab temporarily, until the last button
386 * see the button-up event; and (b) it allows us to track mouse
403 * in case there is a button auto-grab already in effect. If
578 * This procedure is called to release a simulated button grab, if
579 * there is one in effect. A button grab is present whenever
589 * the button grab window to its current window.
596 register TkDisplay *dispPtr; /* Display whose button grab is to be
722 * leave events except for the window in which the button was
742 * relative to the window the button went down in, if there is a
743 * button down. Otherwise, if the pointer window is outside the
765 * 1. Keep track of whether a button is down and what window it
767 * 2. If the first button goes down outside the grab tree, pretend
770 * things like menus work, where button presses outside the
773 * 3. If a button press or release occurs outside the window where
774 * the first button was pressed, retarget the event so it's reported
775 * to the window where the first button was pressed.
776 * 4. If the last button is released in a window different than where
777 * the first button was pressed, generate Enter/Leave events to
778 * move the mouse from the button window to its current window.
779 * 5. If the grab is set at a time when a button is already down, or
780 * if the window where the button was pressed was deleted, then
782 * auto-grab for the button press; events will go to whatever
785 * 6. When a button is pressed during a local grab, the X server sets
789 * problem, set a temporary global grab when the first button goes
790 * down and release it when the last button comes up.
831 == buttonStates[eventPtr->xbutton.button - Button1]) {