Show
Ignore:
Timestamp:
06/28/2009 10:50:08 AM (13 months ago)
Author:
dunk <dunk@…>
Children:
967d93d476267fe64bad1eac66b82ff727f969e8
Parents:
5fb2ad4f7839860a1152ff82fcef728693203580
git-committer:
dunk <dunk@inspo.(none)> / 2009-06-28T10:50:08Z+0100
Message:

sx-clientbuttons: bind buttons to client.window instead of actor - i think that makes more sense

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sx-clientbuttons/sxclientbuttons.py

    r880d60 r5e5ff8  
    8989        # grab the specific button and modifier to allow the app to keep working! 
    9090        for modifier, button in self.bindings.iterkeys(): 
    91             client.actor.grab_button(EventMask.ButtonPress, 
     91            client.window.grab_button(EventMask.ButtonPress, 
    9292                button, 
    9393                modifier, 
     
    9797            ) 
    9898 
    99         client.actor.push_handlers(on_button_press=on_button_press) 
     99        client.window.push_handlers(on_button_press=on_button_press) 
    100100 
    101101    def on_unmanage_client(self, screen, client): 
     
    103103        if client.actor.valid: 
    104104            for modifier, button in self.bindings.iterkeys(): 
    105                 client.actor.ungrab_button(button, modifier) 
     105                client.window.ungrab_button(button, modifier) 
    106106 
    107107