Difference between revisions of "Xmonad/Notable changes since 0.9"

From HaskellWiki
Jump to: navigation, search
(note that A.OnScreen has backwards-incompatible changes)
m (Simplified interface for X.A.SpawnOn and X.H.DynamicHooks)
Line 9: Line 9:
   
 
Example:<br />
 
Example:<br />
<code>
 
  +
<haskell>
 
-- Old code:
 
-- Old code:
 
sp <- mkSpawner
 
sp <- mkSpawner
Line 20: Line 20:
 
[((mod1Mask,xK_k), shellPromptHere defaultXPConfig)
 
[((mod1Mask,xK_k), shellPromptHere defaultXPConfig)
 
..]
 
..]
</code>
+
</haskell>
 
The same applies to XMonad.Hooks.DynamicHooks.
 
The same applies to XMonad.Hooks.DynamicHooks.
   

Revision as of 18:47, 8 December 2009

This page is for keeping a record of significant changes in darcs xmonad and xmonad-contrib since the 0.9 release. See 'darcs changes' for more details about miscellaneous feature enhancements, and documentation and bug fixes not noted here.

The idea is to put here a list of things which a user upgrading from 0.9 to the current darcs version might like to know, so that they are sure to be included in the 1.0 release notes.

Simplified interface for X.A.SpawnOn and X.H.DynamicHooks

Since contrib modules can now store custom state in XState, the additional IORef parameters are no longer required: Users have to remove the first paramter to the respective functions. The functions mkSpawner and initDynamicHooks are also no longer necessary and have been removed.

Example:

-- Old code:
 sp <- mkSpawner
 ..
  [((mod1Mask,xK_k), shellPromptHere sp defaultXPConfig
   ..]
The above has to be changed to:
  -- no mkSpawner line
  ..
  [((mod1Mask,xK_k), shellPromptHere defaultXPConfig)
   ..]

The same applies to XMonad.Hooks.DynamicHooks.

X.A.OnScreen changes

The type of onScreen has been changed, but the more user-friendly functions remain unchanged.