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
David Roundy
4ffee115e1
add differentiate function to StackSet to go [a] -> Stack a.
2007-06-12 13:28:53 +00:00
Spencer Janssen
00e1038d71
Make 'view' a total function
2007-06-12 14:32:48 +00:00
Don Stewart
7158a58792
fmt
2007-06-12 13:49:38 +00:00
Stefan O'Rear
c0a9636f3b
-Wall police
2007-06-12 06:05:46 +00:00
Stefan O'Rear
ff6b48382c
Use a more descriptive name for the layout reversal message
2007-06-12 05:58:59 +00:00
Stefan O'Rear
bb9e46df6c
Use broadcastMessage in windows and switchLayout, should improve Xinerama for tabbed and make xmonad robust in the presence of state-altering unlayout hooks
2007-06-12 05:55:10 +00:00
Stefan O'Rear
f68a954fc3
Add a broadcastMessage function, which sends to all visible workspaces without refreshing. (+6 loc)
2007-06-12 05:53:39 +00:00
Spencer Janssen
d21e61a315
TODO for scan
2007-06-11 21:42:17 +00:00
Spencer Janssen
4b9bacb1f9
Set withdrawn state after calling windows
2007-06-11 21:33:27 +00:00
Spencer Janssen
9992737e84
Remove obsolete 'layout' function
2007-06-11 20:36:22 +00:00
Spencer Janssen
615a4a1af1
-Wall police
2007-06-11 20:20:07 +00:00
Spencer Janssen
33447129dd
Comment only
2007-06-11 19:58:27 +00:00
Spencer Janssen
14971546bb
Hide windows that are not supposed to be visible
2007-06-11 19:18:09 +00:00
Spencer Janssen
6f7030f875
-Wall police
2007-06-11 18:57:08 +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
e7b37ca646
-Wall police
2007-06-11 18:01:23 +00:00
Spencer Janssen
5f3e91676a
Add StackSet.filter
2007-06-11 16:51:54 +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
Spencer Janssen
b668133c08
Ensure windows get at least 1 pixel for width/height
2007-06-11 06:19:30 +00:00
Spencer Janssen
330179ea20
Restrict the master/slave ratio to [0, 1]
2007-06-11 05:32:30 +00:00
Jason Creighton
854d3239cc
comment only
2007-06-11 02:02:49 +00:00
David Roundy
c8b6388fb8
a few modifications to event-sending to make Tabbed layout work.
2007-06-10 15:38:36 +00:00
David Roundy
b97e8836e2
send message when "windows" is called.
2007-06-10 01:35:31 +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
David Roundy
0d4a7d098f
cut incorrect comment.
2007-06-09 17:34:47 +00:00
David Roundy
16c8622fbf
doLayout cleanup and commented exception-handling.
2007-06-09 14:50:36 +00:00
Stefan O'Rear
1c3931a0d6
Give refresh sole responsibility for establishing window properties (-3 loc)
2007-06-09 18:58:35 +00:00
Stefan O'Rear
7706f38dc8
Give refresh sole responsibility for establishing window properties (-3 loc)
2007-06-09 18:58:35 +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
Don Stewart
a21c4d02f1
Add notes on using X11-extras from darcs
2007-06-09 02:50:45 +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
Don Stewart
b257658781
dead import
2007-06-06 02:52:26 +00:00
Jason Creighton
5da458c755
move extraModifiers/cleanMask to Operations.hs
...
so XMonadContrib can use them
2007-06-06 00:50:56 +00:00
Don Stewart
d7d8c586cb
temporary workaround for delete/focus issue in fullscreen mode
2007-06-06 02:49:38 +00:00
Don Stewart
86ea7f7bc0
whitespace
2007-06-06 02:48:57 +00:00
Don Stewart
a2a0670397
simplify code
2007-06-06 00:46:03 +00:00
Don Stewart
02a9e4c589
mention why StackSet needs -fglasgow-exts (for deriving Typeable)
2007-06-05 09:26:59 +00:00
Don Stewart
d4676d93e8
comments only
2007-06-05 09:18:03 +00:00
Don Stewart
0010a23c18
clean size hint code
2007-06-05 09:13:54 +00:00
Don Stewart
7ae7029b50
Enable logging of state changes to stdout
2007-06-05 08:37:35 +00:00
Don Stewart
21e09361a6
remove accidental logging of events
2007-06-05 08:14:52 +00:00
Don Stewart
8f200d408f
Fix lost eventNotifyMask bug
...
When resuming, we were (implicitly) relying on 'scan' to find all
windows, and reset their event masks and WM_STATE. When we moved to
Iconfified hidden workspaces, 'scan' would only find and reset states on
the current workspace.
The result being that hidden workspace windows no longer received
enterNotify events.
Fix this by traversing the StackSet serialised during a restart, setting
the intial X states for each window, whether visible or hidden.
2007-06-05 04:30:40 +00:00
Don Stewart
d3632eb8fe
whitespace only
2007-06-05 00:07:23 +00:00
Spencer Janssen
b22ebceb80
Comment only
2007-06-04 21:19:56 +00:00