Changeset 215
- Timestamp:
- 05/06/2008 05:09:12 PM (7 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 modified
-
examples/examplewm.py (modified) (2 diffs)
-
plwm/__init__.py (modified) (1 diff)
-
plwm/frame.py (added)
-
plwm/wmanager.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/examplewm.py
r198 r215 33 33 from plwm import wmanager, focus, keys, \ 34 34 deltamove, outline, \ 35 border, color, font, views, \35 frame, color, font, views, \ 36 36 modewindow, modestatus, \ 37 37 mw_clock, mw_biff, \ … … 46 46 class MyClient(wmanager.Client, 47 47 outline.XorOutlineClient, 48 border.BorderClient,49 48 modestatus.ModeFocusedTitleClient): 50 49 51 no_border_clients = Or(name('XClock'), name('XBiff'), name('XModeWindow')) 50 # Put a frame around all client windows 51 window_proxy_class = frame.FrameProxy 52 52 53 start_iconified_clients = name('WMManager') 53 54 default_pointer_pos = {'Emacs': (-1, 0), -
trunk/plwm/__init__.py
r212 r215 39 39 'focus', 40 40 'font', 41 'frame', 41 42 'input', 42 43 'inspect', -
trunk/plwm/wmanager.py
r214 r215 384 384 385 385 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 386 391 self.window.change_save_set(X.SetModeInsert) 387 392 … … 1609 1614 """ 1610 1615 1611 #debug('verbose_event', 'handling %s', event)1616 debug('verbose_event', 'handling %s', event) 1612 1617 1613 1618 # Continuation of the error handling hack: check if this is a … … 1866 1871 1867 1872 1873 def __proxy_event_init__(self, client): 1874 # Client can now register event handlers 1875 self._client = client 1876 1877 1868 1878 def __getattr__(self, attr): 1869 1879 # Unknown attribute in the proxy, grab it from the real window instead
