#13 Window.grab_button error

closed-fixed
nobody
None
5
2006-07-19
2004-11-04
Mark Tigges
No

In Xlib/xobject/drawable.py the definition of
grab_button in the Window class is incorrect. It
misses passing the cursor argument. The function
should read:

def grab_button(self, button, modifiers,
owner_events, event_mask,
pointer_mode, keyboard_mode,
confine_to, cursor, onerror = None):

request.GrabButton\(display = self.display,
           onerror = onerror,
           owner\_events = owner\_events,
           grab\_window = self.id,
           event\_mask = event\_mask,
           pointer\_mode = pointer\_mode,
           keyboard\_mode = keyboard\_mode,
           confine\_to = confine\_to,

cursor = cursor,
button = button,
modifiers = modifiers)

The cursor = cursor line was missing. I don't have CVS
access, otherwise, I'd fix it.

Discussion

  • Mike Grant

    Mike Grant - 2006-07-19

    Logged In: YES
    user_id=1175208

    Fixed in CVS (rev 1.12 of the file in CVS, 2002), but not
    released yet.

     
  • Mike Grant

    Mike Grant - 2006-07-19
    • status: open --> closed-fixed
     

Log in to post a comment.