Changeset 215 for trunk/plwm/wmanager.py

Show
Ignore:
Timestamp:
05/06/2008 05:09:12 PM (8 months ago)
Author:
petli
Message:

Proof-of-concept frame implementation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plwm/wmanager.py

    r214 r215  
    384384             
    385385        Window.__init__(self, screen, window) 
     386 
     387        # Let proxy register event handlers now that we have a dispatcher  
     388        if self.window_proxy_class is not None: 
     389            window.__proxy_event_init__(self) 
     390 
    386391        self.window.change_save_set(X.SetModeInsert) 
    387392 
     
    16091614        """ 
    16101615 
    1611         # debug('verbose_event', 'handling %s', event) 
     1616        debug('verbose_event', 'handling %s', event) 
    16121617 
    16131618        # Continuation of the error handling hack: check if this is a 
     
    18661871 
    18671872 
     1873    def __proxy_event_init__(self, client): 
     1874        # Client can now register event handlers 
     1875        self._client = client 
     1876 
     1877 
    18681878    def __getattr__(self, attr): 
    18691879        # Unknown attribute in the proxy, grab it from the real window instead