Commit Graph

38 Commits

Author SHA1 Message Date
Don Stewart
b765cc9706 Parameterise StackSet by two index types, rather than breaking abstraction 2007-04-19 01:27:05 +00:00
Don Stewart
f3f83af393 Promote now swaps focused window with master window
This means other windows are unaffected.
The change from the previous cycling behaviour was felt necessary, since
cycling isn't a terribly useful operation.

Some properties that hold:
    focus is unchanged by promotion
    promote is idempotent (promoting twice does nothing)
    the focused and master window will swap their positions in the stack
2007-04-18 22:42:36 +00:00
Don Stewart
48e4d5e283 test for xmonad in path first, before restarting 2007-04-16 02:55:41 +00:00
David Roundy
08ab2d994f fix typo. 2007-04-15 05:56:16 +00:00
Spencer Janssen
d8c7e69ae9 Ignore window entries while moving windows. This should fix all the focus preservation problems. 2007-04-13 08:37:02 +00:00
Don Stewart
a37193f2a6 add license headers to two missing files 2007-04-11 08:10:42 +00:00
Don Stewart
85a20da22c clean up tiling code a teensy bit, and comment on the interaction between focus, master, and cycling direction between the modes 2007-04-11 08:07:47 +00:00
Don Stewart
e9597b4899 Change semantics of 'promote'.
Previously 'promote' would move the currently focused window into the
master position in tiled mode. This was *almost* a cycle of the windows,
but not quite (depending on where the focus was, it was in fact a
cycle).

Now we do the obvious generalisation, and just cycle the current window
stack. Simpler to understand, simpler to reason about.
2007-04-11 07:34:56 +00:00
Don Stewart
c490333d12 Statically distinguish Workspace and Screen indices 2007-04-11 06:04:56 +00:00
Jason Creighton
b35bb69490 removed xinerama-enabled dmenu action
I don't think we're going to see any Xinerama support upstream, at least not
anytime soon. It doesn't make sense to ship something with xmonad that isn't
going to work out of the box. So for now Xinerama users should just use this
patch: http://www.jcreigh.com/xmonad/xinerama-dmenu.html
2007-04-11 02:47:16 +00:00
Spencer Janssen
be223c35f4 Move workspace fetching logic from Config.hs to Operations.hs 2007-04-10 06:47:14 +00:00
Jason Creighton
0c95f0c143 moved screen <-> workspace mapping from XMonad to StackSet 2007-04-10 06:27:31 +00:00
Spencer Janssen
384a30b7ae Remove redundant setFocus, setFocus is called by refresh which is called by windows 2007-04-05 21:58:32 +00:00
Don Stewart
24930dae04 -Wall police 2007-04-05 00:01:00 +00:00
Jason Creighton
0864672d54 take window borders into account when resizing (requires latest X11-extras) 2007-04-04 02:16:12 +00:00
Don Stewart
0ba47579c9 replace multiple gets with a single get and record bind 2007-04-04 01:05:24 +00:00
Spencer Janssen
3a592d2df8 Use Tall and Wide for split screen layouts. This should be less confusing. 2007-04-03 05:06:10 +00:00
Jason Creighton
3b36be5055 vertical (master area on top) tiling 2007-04-03 04:06:58 +00:00
Spencer Janssen
4a912c8613 Comment only. 2007-04-02 07:24:18 +00:00
Spencer Janssen
93be71bb88 Revert to the old layout code. 2007-04-02 04:51:14 +00:00
Alec Berryman
df4bda60ff Remove trailing spaces, no content changed 2007-04-01 14:45:39 +00:00
Jason Creighton
b22432a8b3 "dmenu" operation to spawn dmenu only on the current screen (for Xinerama)
This requires a dmenu that will accept -x and -w. Currently, This means
applying this patch: http://www.jcreigh.com/dmenu/position-options.patch (I'm
trying to see if I can get this into dmenu upstream; haven't heard anything
back yet.)
2007-04-01 01:27:12 +00:00
hughes
0bb46e09cb Cleaned up layout a little bit 2007-04-01 02:36:39 +00:00
Don Stewart
cf91d8aa53 restore dwm-style keybindings. mod-shift-{j,k} resize in vert mode 2007-04-01 02:54:33 +00:00
hughes
1909c353b7 Merged things together with dons changes. 2007-04-01 02:18:46 +00:00
hughes
10a0e21e00 Vertical/horizontal split, and resizability. 2007-04-01 01:47:06 +00:00
Don Stewart
93cf0950e8 formatting fixes. the style is getting a bit dodgy in some places... 2007-04-01 00:28:03 +00:00
Spencer Janssen
3303b4a101 Move safeFocus from Main to Operations 2007-03-31 01:00:24 +00:00
Jason Creighton
e743ef0c2d removed refocus; moved functionality to setFocus 2007-03-31 00:34:42 +00:00
Jason Creighton
207bd516e1 refactored "focus changed" code into "refocus" 2007-03-30 03:54:54 +00:00
Alec Berryman
a5e3f1daa0 Window borders
Colors taken from dwm's config.default.h and hard-coded in Operations instead
of Config because of import cycle.

Windows overlap slightly in the current tiling algorithm and sometimes prevent
the active window from being completely surrounded by a red border.
2007-03-29 18:21:59 +00:00
Alec Berryman
957832e4c5 Type error: button1 :: Button, not :: ButtonMask 2007-03-29 02:43:30 +00:00
daniel
5ae3c6a1fc first shot at allowing click to focus windows 2007-03-28 10:15:40 +00:00
hughes
4fc3448186 Workspace-specific layouts 2007-03-26 15:02:13 +00:00
Spencer Janssen
5bc238964d Focus follows mouse.
This change makes the window under the mouse pointer the focused window.  This
isn't quite what we want, but it is a step in the right direction.  The next
step is to somehow inhibit the CrossingEvents generated during workspace and
layout switches.
2007-03-26 12:47:25 +00:00
daniel
929d9c784a minor aesthetic changes 2007-03-26 07:33:39 +00:00
Spencer Janssen
a50a6bbd29 Restrain leftWidth 2007-03-26 09:50:34 +00:00
Jason Creighton
0bb51dae3d added Config.lhs and moved most things in Main.hs into Operations.hs to enable this 2007-03-26 05:13:41 +00:00