aboutsummaryrefslogtreecommitdiffstats
path: root/xmonad-contrib.cabal
diff options
context:
space:
mode:
authornrujac <nrujac@gmail.com>2014-12-19 01:23:09 +0100
committernrujac <nrujac@gmail.com>2014-12-19 01:23:09 +0100
commit2bc0e028c777ad78cde9ba96ffc19dac92fdebce (patch)
treec52856c83b921483cf1bd68d30f00fdf48968763 /xmonad-contrib.cabal
parent1b3eaa512ecac14f606d72c10d62667da4c575fd (diff)
downloadXMonadContrib-2bc0e028c777ad78cde9ba96ffc19dac92fdebce.tar.gz
XMonadContrib-2bc0e028c777ad78cde9ba96ffc19dac92fdebce.tar.xz
XMonadContrib-2bc0e028c777ad78cde9ba96ffc19dac92fdebce.zip
Generalize new workspace addition functions to support arbitrary insertion.
Ignore-this: 9f8c14b5aa9d398b3f167da0af1a8650 The current DynamicWorkspaces module only supports adding new workspaces at the start of the list of workspaces. This means when binding workspaces to keys based on the position in the list, key bindings can change as workspaces are added in removed in a far more destructive way than necessary. Instead, supporting appending and arbitrary insertion allows the user to determine where the new workspace should be added. This patch is a straight generalization of the addHiddenWorkspace' function. Rather than always using `(:)` to insert the new workspace into the list of workspaces, this patches causes it to use an arbitrary list insertion function instead. A few new functions are added to prevent breakage of external code while exported functions are left unchanged. List of new functions: appendWorkspace appendWorkspacePrompt addWorkspaceAt addHiddenWorkspaceAt Existing functions were modified to call their generalized brethren where possible without changing functionality. This patch should not change behavior for any existing users of this module. darcs-hash:20141219002309-8d489-1a2c5cacb9724bd185836691027d1aefb8a799d5.gz
Diffstat (limited to 'xmonad-contrib.cabal')
0 files changed, 0 insertions, 0 deletions