
On Wed, Oct 1, 2014 at 11:00 PM, Brandon Allbery
On Wed, Oct 1, 2014 at 10:55 PM, Christian Wills
wrote: instance ExtensionClass MasterPaneFlag where initialValue = MasterPaneFlag False
pickIncrFun :: Bool -> X () pickIncrFun flag = if flag then (sendMessage (IncMasterN (-1))) else (sendMessage (IncMasterN 1))
You might want to check the behavior of this around manual changes (mod-, and mod-.). It should at least be safe against mod-shift-space and manual setLayout, I think.
Right. If you change the master count manually with mod-, and mod-. this will toggle +/- 1 from your manually set master count depending on what the state was when you changed the master count manually. I don't find that to be totally off the wall given the spirit of not wanting to have to use mod-, and mod-. You could always IncMasterN(-100000) to bring it back to zero and then add 1 or leave it alone depending on the flag setting if you really wanted to.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net