Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 31st, 2011  |  syntax: None  |  size: 0.55 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     if ((context != last_context) && ((last_button & BUTTON_REL) == 0)
  2. #ifdef HAVE_SCROLLWHEEL
  3.         /* Scrollwheel doesn't generate release events  */
  4.         && !(last_button & (BUTTON_SCROLL_BACK | BUTTON_SCROLL_FWD))
  5. #endif
  6.         )
  7.     {
  8.         if (button & BUTTON_REL)
  9.         {
  10.             last_button = button;
  11.             last_action = ACTION_NONE;
  12.         }
  13.         /* eat all buttons until the previous button was |BUTTON_REL
  14.            (also eat the |BUTTON_REL button) */
  15.         return ACTION_NONE; /* "safest" return value */
  16.     }
  17.  
clone this paste RAW Paste Data