I figured out the problem. I logged the event in the run method of GlobalKeyBinding, and for most key events this is the kind of object I got:
<class 'Xlib.protocol.event.KeyPress'>(type = 130, detail = 10, sequence_number = 192, time = 4374640, root = <<class 'Xlib.display.Window'> 0x00000190>, window = <<class 'Xlib.display.Window'> 0x00000190>, child = <<class 'Xlib.display.Window'> 0x02011ddf>, root_x = 1167, root_y = 241, event_x = 1167, event_y = 241, state = 80, same_screen = 1) But for my brightness control, this is what I got: <class 'Xlib.protocol.event.MappingNotify'>(type = 34, sequence_number = 193, request = 1, first_keycode = 8, count = 248) No state to speak of. I added this if statement before the rest of the block, and it solved my problem: if (hasattr(event, 'state')): I'll fork and submit a pull request, if that's alright. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1767451 Title: Super keys stop working after adjusting laptop brightness To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mate-dock-applet/+bug/1767451/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
