Commit Graph

19 Commits

Author SHA1 Message Date
David Roundy
723e757910 introduce new combineTwo layout combinator.
This layout combinator is similar in spirit (and in code) to
the old combo combinator, but only allows two sublayouts.  As
a result, we don't need to wrap these in existentials, and reading
works seamlessly.  Also, we add the feature (which could also be
added to combo) of being able to change which sublayout a given
window is in through integration with WindowNavigation.

I envision combo being deprecated soon.  combineTwo isn't quite
so flexible, but it's much easier and is better-coded also.
2007-10-20 19:17:48 +00:00
l.mai
27b9582201 fix WindowNavigation comment 2007-10-18 05:43:15 +00:00
David Roundy
1ec41467de make windowNavigation simpler to use in simplest case. 2007-10-16 21:43:37 +00:00
David Roundy
7efca8901c compute nice window border for WindowNavigation properly. 2007-10-16 21:33:16 +00:00
David Roundy
4c236753ec fix docs on WindowNavigation. 2007-10-16 21:03:49 +00:00
David Roundy
2f3a40d535 compute a reasonable navigation color based on focussed color. 2007-10-15 16:55:04 +00:00
Andrea Rossato
d7704a3c0d WindowNavigation: don't export the config constructor and some haddock fixes
I told to David I would have taken care of that: instead of exporting
the config constructor we export 2 functions: navigateColor and
noNavigateBorders. Updated documentation accordingly.
2007-10-13 09:05:24 +00:00
Spencer Janssen
550cea2da4 defaultLayout -> layoutHook 2007-10-15 20:59:01 +00:00
Spencer Janssen
a96e944477 LayoutSelection -> Select 2007-10-15 20:58:04 +00:00
Devin Mullins
0927815c14 doco fix: s/SomeLayout/Layout/g 2007-10-12 02:59:53 +00:00
Shachaf Ben-Kiki
9c4d32fe12 Fix more LANGUAGE pragmas
This patch should go after my other one -- I'd missed some files that used
-fglasgow-exts.
2007-10-08 11:52:29 +00:00
Shachaf Ben-Kiki
73c055bd46 Add LANGUAGE pragams
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:21:41 +00:00
nornagon
e1a10b926e Replace -fglasgow-exts with LANGUAGE pragma in WindowNavigation.hs 2007-10-06 22:41:56 +00:00
David Roundy
5669c3903a add swapping capability in WindowNavigation.
This allows you to reorder your windows geometrically, by
swapping the currently focussed window with ones that are
up/down/right/left of it.  The idea is that we should be
able to manipulate windows based on the visual layout of
the screen rather than some (possibly obscure) logical ordering.
2007-10-03 15:17:55 +00:00
Andrea Rossato
e8bd7919fa WindowNavigation: add configurable colors and the possibility to turn them off 2007-10-03 09:00:17 +00:00
David Roundy
db1026f6e9 some renaming of classes and data types. 2007-09-29 19:12:38 +00:00
David Roundy
107c9912bf enable color setting in WindowNavigation.
This is still somewhat experimental, comments welcome.
2007-09-29 11:45:31 +00:00
Andrea Rossato
77d047200d WindowNavigation now uses Invisible (plus some vertical alignement) 2007-09-28 18:59:07 +00:00
David Roundy
81371c20fa add new WindowNavigation module. 2007-09-28 13:19:06 +00:00