253 Commits

Author SHA1 Message Date
Spencer Janssen
22aacf9bf6 Delete Main.hs-boot! 2007-11-01 08:00:45 +00:00
Spencer Janssen
b0b43050f4 Remove manageHook from Main.hs-boot 2007-11-01 07:53:08 +00:00
Spencer Janssen
bf52d34bbf -Wall police 2007-11-01 07:44:11 +00:00
Spencer Janssen
e50927ffc0 Store user configuration in XConf 2007-11-01 07:23:08 +00:00
Spencer Janssen
3789f37f25 This is a massive update, here's what has changed:
* Read is no longer a superclass of Layout
 * All of the core layouts have moved to the new Layouts.hs module
 * Select has been replaced by the new statically typed Choose combinator,
   which is heavily based on David Roundy's NewSelect proposal for
   XMonadContrib.  Consequently:
    - Rather than a list of choosable layouts, we use the ||| combinator to
      combine several layouts into a single switchable layout
    - We've lost the capability to JumpToLayout and PrevLayout.  Both can be
      added with some effort
2007-11-01 06:43:18 +00:00
David Roundy
48ccbc7fb2 cleaner version of main/config inversion. 2007-10-29 18:48:23 +00:00
David Roundy
d679ceb234 make setLayout a bit more inclusive. 2007-10-24 23:12:50 +00:00
David Roundy
7b3c1243b7 make xmonad work with inverted main/config. 2007-10-18 17:00:58 +00:00
Spencer Janssen
066da1cd99 New windows start in the iconic state 2007-10-28 06:39:49 +00:00
Brent Yorgey
e384a358b5 Replace 'findIndex' with 'findTag', which more accurately describes what the function does.
I realize this is a big change, but the name 'findIndex' was confusing for me, since I expected it to return some sort of integer.  What it actually does, of course, is return a workspace tag, which might be more general than an index.
Of course, this change breaks several contrib modules; I'll submit a patch to make the change there as well.
2007-10-22 20:41:05 +00:00
Eric Mertens
0903c76d40 Operations.hs: flip maybe id is fromMaybe 2007-10-18 23:14:18 +00:00
Eric Mertens
156a89b761 Deobfuscate Tall layout 2007-10-18 23:13:29 +00:00
Spencer Janssen
1ea1c05617 setInitialProperties after placing windows 2007-10-19 20:13:10 +00:00
Spencer Janssen
f5ad470815 setInitialProperties after placing windows 2007-10-19 20:13:10 +00:00
Spencer Janssen
1be4bc5d91 Ignore borders in the stored RationalRects of floating windows.
Also, add 'floatWindow' which computes the actual Rectangle for that window,
including border.
2007-10-19 06:39:22 +00:00
Spencer Janssen
18cf8fbb10 Ignore borders in the stored RationalRects of floating windows.
Also, add 'floatWindow' which computes the actual Rectangle for that window,
including border.
2007-10-19 06:39:22 +00:00
Spencer Janssen
eb65473591 I prefer fmap over liftM 2007-10-19 06:31:04 +00:00
Devin Mullins
c734586275 change 0/1/3 to named states, per X11-extras darcs head 2007-10-18 02:16:51 +00:00
Eric Mertens
ac94932345 Operations.hs: make use of notElem and notMember 2007-10-17 17:43:57 +00:00
Spencer Janssen
bd6a52e587 Clean up trailing whitespace 2007-10-15 02:23:22 +00:00
Don Stewart
6fecf7c425 document, and use better names, for serialising/existential-dispatch framework 2007-10-13 23:21:50 +00:00
Don Stewart
3f3b4251c2 clean up Layout code a little more 2007-10-13 22:10:24 +00:00
Don Stewart
775172983b clean up names of layout code 2007-10-13 20:43:00 +00:00
Andrea Rossato
49f64197b2 Haddox fix 2007-10-12 10:05:51 +00:00
Spencer Janssen
1f625a6c0d Add userCode function for the popular m catchX return () 2007-10-12 01:42:17 +00:00
David Roundy
1eaee82e85 catch exceptions when calling user-written code.
This is a minimal approach that only catches error
in actual user-written code.
2007-10-12 01:33:05 +00:00
David Roundy
1a48b527ff one more comment. 2007-10-11 15:44:23 +00:00
Spencer Janssen
3cf5c1f9d4 Set the border color of new windows, nice catch by mauke 2007-10-11 02:16:27 +00:00
Spencer Janssen
d348f2ae72 Only adjust floating windows that are actually larger than the screen
Also, fix a typo caught by Xiao-Yong Jin on the mailing list.
2007-10-10 06:26:04 +00:00
Shachaf Ben-Kiki
41063f2e57 Add LANGUAGE pragmas
It seems that GHC 6.6 just enables -fglasgow-exts when it sees any LANGUAGE
pragma, so not all of them were added; this patch adds the rest of them, which
is necessary for xmonad to compile in GHC >=6.7.
2007-10-08 02:11:07 +00:00
Don Stewart
fd10c198e6 comments need to be given for all top level bindings 2007-10-06 15:41:27 +00:00
David Roundy
6294e6adf5 add pureMessage. 2007-10-05 14:05:53 +00:00
Spencer Janssen
7dac92057d manageHook: use the curry style, better documentation 2007-10-03 16:24:04 +00:00
David Roundy
e70fb29efc some renaming of classes and data types. 2007-09-29 19:13:20 +00:00
Spencer Janssen
045ed777a2 Pass window name and class info to manageHook 2007-10-02 17:40:24 +00:00
Spencer Janssen
e8bbba9694 Send ClassHints to manageHook 2007-10-01 17:52:46 +00:00
Spencer Janssen
8b8433a9e7 First cut at manageHook 2007-10-01 16:46:27 +00:00
David Roundy
d05b01431d set border color more judiciously, so layouts can customize this. 2007-09-28 23:53:46 +00:00
Andrea Rossato
5e3317b28e Operation: coding style conformance 2007-09-28 11:27:44 +00:00
David Roundy
5ef7c5f5d0 define defaultLayout in Config.hs. 2007-09-28 02:02:08 +00:00
Spencer Janssen
d0d81db6de Use LANGUAGE pragmas over -fglasgow-exts 2007-09-28 18:14:38 +00:00
Spencer Janssen
3b64981c78 LayoutSelection: describe the active layout only 2007-09-28 05:18:58 +00:00
David Roundy
a7c4c38ba8 put transients completely on the screen when possible. 2007-09-27 21:10:14 +00:00
Spencer Janssen
34bbbf59c4 setLayout should not call sendMessage, because sendMessage calls windows 2007-09-28 01:15:10 +00:00
Spencer Janssen
4fd7353d8e Add setLayout to the core 2007-09-28 00:22:41 +00:00
Spencer Janssen
2ab2195782 Refactor floating code in manage 2007-09-27 19:55:34 +00:00
David Roundy
71bce5e525 fix bug where ReleaseResources wasn't getting sent to all layouts. 2007-09-25 21:58:16 +00:00
David Roundy
2caf68ee69 add support for parseable layouts not in the default. 2007-09-25 17:41:34 +00:00
David Roundy
f420ae881d rename modifyLayout to handleMessage. 2007-09-25 18:29:06 +00:00
David Roundy
e062265b38 make it easier to define pure layouts. 2007-09-25 17:05:03 +00:00