David Roundy
b4929576e7
add Show instance to Layout
2007-09-20 16:12:08 +00:00
David Roundy
0e5f8b03e8
eliminate ugly OldLayout.
2007-09-20 15:52:37 +00:00
David Roundy
3f03dcb5c1
move Layout stuff into class (hokey first cut).
2007-09-14 21:59:59 +00:00
Don Stewart
5e943d512c
use hPrint instead of hPutStrLn
2007-09-27 21:39:01 +00:00
Ivan Tarasov
f668b6238a
export getAtom from XMonad.
2007-08-25 17:41:56 +00:00
David Roundy
41e3b073c8
switch WorkspaceId to String.
2007-08-20 11:36:58 +00:00
Spencer Janssen
6dcd66f16e
Comment only
2007-08-15 22:40:31 +00:00
David Roundy
fae3cbebb1
move event loop out of mouseDrag.
2007-08-07 20:16:16 +00:00
Spencer Janssen
ab830ec227
Move screen details into StackSet
2007-06-29 21:39:17 +00:00
David Roundy
61d7524bcd
support self-modifying layouts.
2007-06-23 20:14:47 +00:00
Don Stewart
776886660b
minor tweaks, ideas from joachim.fasting@
2007-06-21 03:36:13 +00:00
Spencer Janssen
e99d7431c8
Update Layout documentation
2007-06-20 15:08:58 +00:00
David Roundy
e517aedfa1
make Layouts able to layout whatever they like.
2007-06-19 15:08:16 +00:00
Jason Creighton
8169445cbd
move initColor to Operations and only store the Pixel value of colors
...
Moving initColor to Operations allows it to be used by extensions.
The Pixel component of the color is the only thing we need, so it's simpler
just to deal with that.
2007-06-13 23:45:01 +00:00
Andrea Rossato
753b42ae65
haddick fine tuning
2007-06-13 18:59:02 +00:00
Spencer Janssen
d1e4699944
Indentation
2007-06-13 04:30:18 +00:00
David Roundy
194a934c37
add catchX to catch exceptions.
2007-06-12 15:42:53 +00:00
David Roundy
5f8202e79e
make focus, up and down complete functions.
...
This is a rerun of my change to make (Stack a) never be empty. Gives
us more type-safety.
2007-06-12 15:05:55 +00:00
Spencer Janssen
4f5c307d6f
API CHANGE: Give doLayout a Stack rather than a flattened list
2007-06-11 18:26:29 +00:00
Spencer Janssen
b3bdbf3588
Use catchIO in 'restart'
2007-06-11 16:11:52 +00:00
Spencer Janssen
00b930b09e
Rename safeIO to catchIO
2007-06-11 16:06:08 +00:00
David Roundy
0d17ca9436
add safeIO which catches and logs exceptions.
2007-06-11 15:36:50 +00:00
David Roundy
ab6f210300
implement Spencer's decoration suggestion.
2007-06-10 01:22:37 +00:00
Andrea Rossato
e1885f27e1
haddock compatibility
2007-06-10 12:37:46 +00:00
Don Stewart
6365601c77
Move state logging into Config.hs, via logHook :: X ()
2007-06-10 06:19:32 +00:00
Don Stewart
3bfa0930af
polish serialisation code (-7 lines)
2007-06-10 04:55:51 +00:00
Don Stewart
0ada17c34a
HEADS UP: (logging format change). use a custom pretty printer, for an easier format to parse, than 'show' produces
2007-06-09 13:17:16 +00:00
Spencer Janssen
cf9828cbcd
Fix unmap handling
...
According to the ICCCM, clients should send a synthetic unmap event when they
initiate an unmap. The old code waited for these synthetic unmaps to unmanage
windows. However, certain 'obsolete' clients do not send synthetic unmaps
(notably xpdf's find dialog). These windows entered a zombified state: xmonad
does not manage them, yet they are still mapped and raised on screen.
The new algorithm (derived from wmii):
- track windows that are mapped on screen
- track the number of expected unmap events for each window, increment every
time 'hide' is called on a window that is not mapped.
- decrement the expected unmap counter on each unmap event
- treat an unmap event as genuine (ie. unmap the window) when:
- the event is synthetic (per ICCCM)
- OR there are no expected unmap events for this window
2007-06-06 21:40:06 +00:00
Stefan O'Rear
e4e1724842
Remove no-longer-needed 'dimensions' state (-5 loc)
2007-06-04 04:47:15 +00:00
Stefan O'Rear
cd73165c63
Set WM_STATE, iconify invisible windows (+9 loc)
...
Note that this breaks compatibility with certain programs described as
"obsolete" in the ICCCM (1994). See the command above the UnmapEvent handler
for details.
2007-06-04 04:23:43 +00:00
Don Stewart
9b429f4f41
whitespace
2007-06-04 01:55:32 +00:00
Don Stewart
ca896686a1
-Wall
2007-06-04 01:46:30 +00:00
Stefan O'Rear
f06d042b56
do not cache atom values within Xmonad, instead let Xlib worry about caching (a documented feature)
2007-06-04 01:39:38 +00:00
glasser
ddffd109ce
Rename withWorkspace to withWindowSet.
2007-06-01 00:13:25 +00:00
Spencer Janssen
b069f84add
Minor style change.
2007-05-30 18:10:06 +00:00
nickburlett
fc08bd48b4
log errors on executeFile in restart
...
I found it difficult to track down a problem in the restart code where xmonad was silently not restarting. This will log the error to stderr, which should show up in .xsession-errors
2007-05-30 17:10:24 +00:00
Don Stewart
c613073cb6
support per-screen gap settings. you can have different gaps on individual screens now
2007-05-28 03:15:01 +00:00
Don Stewart
1d2c5ca35a
Use (Int,Int,Int,Int) for arbitrary gaps on any side of the screen
2007-05-28 02:51:35 +00:00
Don Stewart
bb4bd97c87
mod-b, toggle on or off the status bar gap
2007-05-27 12:59:28 +00:00
Don Stewart
ef5326ccff
dead code
2007-05-27 07:26:52 +00:00
Spencer Janssen
0df8dffc78
restart: don't preserve old args
2007-05-22 06:03:57 +00:00
Spencer Janssen
9b52525417
Generalize withDisplay's type
2007-05-22 04:37:58 +00:00
Spencer Janssen
d074b1bcfd
List --resume args first
2007-05-21 23:24:27 +00:00
Spencer Janssen
a9d7b7ef49
Experimental support for a beefier restart.
2007-05-21 19:46:53 +00:00
Spencer Janssen
270d80297f
Catch the exception rather than explicitly checking the PATH
2007-05-21 19:19:00 +00:00
Spencer Janssen
3c2ad2509e
Put restart in the X monad
2007-05-21 19:07:49 +00:00
Spencer Janssen
90dd7705a8
Show instances for WorkspaceId and ScreenId
2007-05-21 19:07:04 +00:00
Spencer Janssen
daefb508d7
Use Position for dimensions
2007-05-21 16:28:09 +00:00
Spencer Janssen
b59d4d1dc0
Make screen info dynamic: first step to supporting randr
2007-05-21 15:27:59 +00:00
Jason Creighton
02073c547b
s/workspace/windowset/
2007-05-21 04:03:30 +00:00