Commit Graph

1169 Commits

Author SHA1 Message Date
Don Stewart
faab935ced unnec. `nub' 2007-03-09 09:10:45 +00:00
Don Stewart
6386569f9b just use Map, not int map. strict updates don't seem to help btw. 2007-03-09 08:37:06 +00:00
Don Stewart
4d7af3b953 comments on whether we lose space due to lazy updates of the stack set 2007-03-09 08:16:21 +00:00
Don Stewart
11afb17966 don't need the unix package 2007-03-09 07:51:48 +00:00
Don Stewart
354067b441 sneaky inline 2007-03-09 06:38:18 +00:00
Don Stewart
f77f0ae32c little bit of strictness, based on -prof output 2007-03-09 06:34:49 +00:00
Don Stewart
914192cc70 explicit interface on StackSet. maybe it should be a seperate package ... ? 2007-03-09 06:12:55 +00:00
Don Stewart
03366b9303 -12 lines, refactor 2007-03-09 06:01:39 +00:00
Don Stewart
0c4eae0317 refactor, -10 or so loc 2007-03-09 05:54:17 +00:00
Don Stewart
2a3284a31a more QC properties on StackSets 2007-03-09 05:40:42 +00:00
Don Stewart
0ea4260a4c simpler type (no need to cache size, we *could* grow new stacks on demand now) 2007-03-09 04:36:38 +00:00
Don Stewart
d93cd66d11 replace Seq [a] with IntMap [a], hopefully gets 6.4 support 2007-03-09 04:30:35 +00:00
Don Stewart
7e2caa4707 simplify StackSet api even further (-15 loc) 2007-03-09 04:17:07 +00:00
Don Stewart
f10a61fad1 smaller api, less tests 2007-03-09 03:56:35 +00:00
Don Stewart
78407a3c26 use new StackSet api 2007-03-09 03:56:15 +00:00
Don Stewart
436fbd7865 shrink StackSet api 2007-03-09 03:56:03 +00:00
Spencer Janssen
7f9b4ca954 Update location for X11-extras 2007-03-09 04:34:22 +00:00
Don Stewart
dcfd566287 comments 2007-03-09 03:18:47 +00:00
Don Stewart
6fe1daf96d handle MappingNotifyEvent properly, and missing test in MapRequestEvent. firefox still won't take the keyboard though 2007-03-09 03:06:44 +00:00
Don Stewart
b8ec2a7b91 comments 2007-03-09 03:06:40 +00:00
Don Stewart
131aad3ce4 stub for MappingNotifyEvent, based on dwm. But the X11-extras binding for this event needs doing (sjanssen?) 2007-03-08 13:05:17 +00:00
Don Stewart
39f52d8fa8 refactoring. heads up: depends on withServer in X11-extras 2007-03-08 12:26:13 +00:00
Don Stewart
87ee0cc151 comments 2007-03-08 12:07:53 +00:00
Don Stewart
8fafb7f5e7 move W -> WMonad 2007-03-08 12:05:36 +00:00
Don Stewart
27c2e1259d forgot to add Properties.hs 2007-03-08 12:05:21 +00:00
Don Stewart
12f4590bf5 move tests into subdir 2007-03-08 12:04:48 +00:00
Don Stewart
87312a91b2 Switch to using abstract StackSet data type. Most workspace logic moved into StackSet.hs 2007-03-08 11:43:08 +00:00
Don Stewart
54019f802f unpack on our own 2007-03-08 11:42:55 +00:00
Don Stewart
4677b20814 cleanup only 2007-03-08 02:19:01 +00:00
Spencer Janssen
d280e17ab7 Make the number of workspaces configurable. 2007-03-08 04:36:14 +00:00
Spencer Janssen
9a5523d53c Print a message for unhandled events 2007-03-08 01:32:49 +00:00
Spencer Janssen
160f07a47c Manage windows that are created before thunk starts 2007-03-07 21:01:17 +00:00
Don Stewart
dda3f2c07a Add Alt-Shift-[1..5], to move the current client to a new workspace 2007-03-08 01:04:24 +00:00
Don Stewart
aacf70eb46 cleaner implementation of 'view'. Only hide the current list. And shortcut if we try to move to the same screen. No flicker 2007-03-08 00:21:34 +00:00
Don Stewart
d373177a1f Fill in missing workspace code
How do we manage workspaces? thunk keeps a list of window lists,
corresponding each window stack on each workspace. When you switch views
to a different workspace it moves all windows off the screen (2*w)
(2*h), and then moves back those in the current list. There's some
screen flicker, we could probably be smarter about this.
2007-03-08 00:07:29 +00:00
Don Stewart
c6ddcd6dcd Add support for multiple workspaces
Everything is in place for multiple workspaces, bar one thing:
the view function. It updates thunk's idea of the current visible
windows, but I don't know how to tell X to hide the current set, and
instead treat the new window list as the only ones visible.

See notes for 'view' at bottom of Main.hs. If we can, say, switch to a
new workspace, which is empty, 'refresh' should spot this only display
the root window.
2007-03-07 11:12:47 +00:00
Don Stewart
27bc6b5b10 no -Werror 2007-03-07 11:12:40 +00:00
Don Stewart
3aecf4dcdc -Wall police. and strip the binary 2007-03-07 07:49:10 +00:00
Don Stewart
800b974c6b fmt. and use a Map for keycode lookup 2007-03-07 07:42:48 +00:00
Spencer Janssen
3ca6985525 xKillClient -> killClient 2007-03-07 07:30:10 +00:00
Don Stewart
11af93da57 formatting and comments only 2007-03-07 07:19:26 +00:00
Don Stewart
ebe2ddf2e4 Add alt-c, kill client 2007-03-07 07:19:10 +00:00
Don Stewart
b3d4730ef4 dead code 2007-03-07 06:52:50 +00:00
Don Stewart
2c3a36ea0f need Data.List 2007-03-07 06:48:27 +00:00
Don Stewart
e531be5476 focus left and right (mod-j/mod-k) 2007-03-07 06:45:39 +00:00
Spencer Janssen
ac09d64e06 Plan for statusbar/multithreading 2007-03-07 06:42:23 +00:00
Spencer Janssen
b1b7a56850 Add TODO 2007-03-07 06:42:14 +00:00
Don Stewart
601724b086 wibble 2007-03-07 06:22:01 +00:00
Don Stewart
bea5592b85 derive MonadState, removes most accessors 2007-03-07 06:15:32 +00:00
Spencer Janssen
96184564d6 Handle several more events, should fix several issues. 2007-03-07 06:04:47 +00:00