Ben Boeckel
8fd8c5d02d
warnings: remove unused variables
2016-07-16 13:22:34 -04:00
Ben Boeckel
d414c76da8
warnings: rename shadowing variables
2016-07-16 13:22:12 -04:00
Bogdan Sinitsyn
5e96324d80
send all docks messages only from event hook
2016-01-18 12:02:40 +03:00
Bogdan Sinitsyn
5df7ba160e
some minor fixes in X.H.ManageDocks
2016-01-18 10:37:04 +03:00
Bogdan Sinitsyn
431fd66527
fix slowdown when removing docks
2016-01-17 18:15:41 +03:00
Bogdan Sinitsyn
f79e3fadea
handle docks remove correctly
2016-01-17 16:32:56 +03:00
Bogdan Sinitsyn
28e9f8bce7
add docksStartupHook for handling docks when restarted
2016-01-17 11:55:59 +03:00
Bogdan Sinitsyn
f73eb1c938
handle PropertyNotify events on docks
2016-01-17 11:46:53 +03:00
Bogdan Sinitsyn
83ee18ad94
add new dock if it hasn't strut properties
2016-01-17 10:53:55 +03:00
Bogdan Sinitsyn
f4d4bde026
typo
2016-01-17 10:38:51 +03:00
Bogdan Sinitsyn
f1b9a0c193
add calcGapForAll for other modules
2016-01-17 10:35:26 +03:00
Bogdan Sinitsyn
028ad6d6ec
minor fixes in X.H.ManageDocks
2016-01-17 10:08:20 +03:00
Bogdan Sinitsyn
a5e87e3894
never query all the tree in X.H.ManageHook
2016-01-17 10:03:07 +03:00
Bogdan Sinitsyn
68cfa84b91
fix build with older ghc
2016-01-15 21:21:47 +03:00
Bogdan Sinitsyn
d638dc8b0a
fix xmonad/xmonad#21
2016-01-03 12:41:15 +03:00
Daniel Wagner
95372520bb
minor documentation fix: manageDocks doesn't do anything with struts, so don't claim it does
2013-08-14 12:51:06 +00:00
Adam Vogt
12b91b9630
Remove misleading comment: we definitely don't support ghc-6.6 anymore
2013-05-14 21:58:51 +00:00
Adam Vogt
00be056a1b
Cache results from calcGap in ManageDocks
...
http://www.haskell.org/pipermail/xmonad/2013-April/013670.html
2013-04-25 15:58:11 +00:00
Adam Vogt
0aeef31c5d
Unconditionally set _NET_WORKAREA in ManageDocks
2013-01-17 18:08:51 +00:00
Daniel Wagner
9d34e848d9
accept more windows as docks
2012-08-23 12:41:53 +00:00
Adam Vogt
dea9cdea5e
Move tests from ManageDocks to tests/
...
The change to use a newtype for RectC is kind of ugly, but this way instances
are less likely to conflict in the tests.
2011-06-09 04:02:20 +00:00
Mats Rauhala
2ab79a7c35
Compile with ghc7
2011-05-04 19:24:55 +00:00
Tomas Janousek
f8be680472
X.H.ManageDocks: event hook to refresh on new docks
2010-07-06 18:58:34 +00:00
Adam Vogt
78f13d2acd
Use imported `fi' alias for fromIntegral more often.
...
Also moves `fi' into U.Image to avoid cyclic imports,
though XUtils sill exports that definition.
2010-04-16 21:29:39 +00:00
Brent Yorgey
b435a6a519
suppress some warnings under ghc 6.12.1 and clean up redundant imports to get rid of some others.
2010-01-12 17:25:07 +00:00
Tomas Janousek
82a0d30f31
X.H.ManageDocks: ignore struts that cover an entire screen on that screen
...
Imagine a screen layout like this:
11111111
11111111
11111111
222222 <--- xmobar here
222222
222222
When placing xmobar as indicated, the partial strut property indicates that an
entire height of screen 1 is covered by the strut, as well as a few lines at
the top of screen 2. The original code would create a screen rectangle of
negative height and wreak havoc. This patch causes such strut to be ignored on
the screen it covers entirely, resulting in the desired behaviour of a small
strut at the top of screen 2.
Please note that this semantics of _NET_WM_STRUT and _NET_WM_STRUT_PARTIAL is
different to what is in wm-spec. The "correct" thing to do would be to discard
the covered portion of screen 1 leaving two narrow areas at the sides, but
this new behaviour is probably more desirable in many cases, at least for
xmonad/xmobar users.
The correct solution of having separate _NET_WM_STRUT_PARTIAL for each
Xinerama screen was mentioned in wm-spec maillist in 2007, but has never
really been proposed, discussed and included in wm-spec. Hence this "hack".
2009-11-19 14:50:43 +00:00
Adam Vogt
74a03cd8fb
Refer to modm as the current modMask
...
This makes the config suggestions consistent with the current template.
2009-10-22 04:11:26 +00:00
Adam Vogt
f0925b5a28
Finish a sentence in H.ManageDocks haddocks.
2009-10-05 16:53:12 +00:00
Adam Vogt
63b6d7c225
Add a SetStruts message to H.ManageDocks.
...
This patch also uses Data.Set instead of [] for the AvoidStruts
constructor to simplify the SetStruts implementation.
2009-10-05 16:42:21 +00:00
Daniel Schoepe
e2113acd35
Factor out direction types and put them in X.U.Types
...
This patch factors out commonly used direction types like
data Direction = Prev | Next
and moves them to X.U.Types.
2009-09-19 19:17:17 +00:00
Adam Vogt
54f030faf8
Replace most -fglasgow-exts with specific LANGUAGE pragmas
2009-06-26 02:54:57 +00:00
Anders Engstrom
c5b5db500b
FloatSnap - calculate gaps instead of snapping against unmanaged windows
...
This patch will remove snapping against unmanaged windows, but instead calculate a new rectangle with all gaps (computed by ManageDocks) removed. This new rectangle is used to snap against. (Both the inside and outside of the rectangle.)
This will remedy the issue of snapping against multiple layers of the same window, additionally there will be no snap-points between windows on the same side. So if you are running two dzen side by side with half the screen each. You will not automatically have a snap-point in the middle.
Naturally, this patch will change which function is exported from ManageDocks.
2009-05-26 22:29:42 +00:00
Adam Vogt
49bb2655ff
A.FloatSnap snap to unmanaged docks too
2009-05-25 00:18:34 +00:00
Ismael Carnales
12939b6c1d
X.U.WindowProperties: Add getProp32 and getProp32s, helpers to get properties from windows
2009-02-05 01:30:31 +00:00
Lukas Mai
c15eea99c9
XMonad.Hooks.ManageDocks: haddock fix
2008-04-04 22:05:32 +00:00
Brent Yorgey
25c23eb79d
XMonad.Layout.Gaps: new contrib module for manual gap support, in the few cases where ManageDocks is not appropriate (dock apps that don't set STRUTS properly, adjusting for a display that is cut off on one edge, etc.)
2008-04-02 00:37:42 +00:00
Lukas Mai
7abbbd4568
XMonad.Hooks.ManageDocks: export checkDoc
2008-03-31 01:29:11 +00:00
Brent Yorgey
c857ebe29c
move Direction type from WindowNavigation to ManageDocks (ManageDocks will move into the core, taking Direction with it)
2008-03-31 01:01:27 +00:00
Brent Yorgey
da5452b009
ManageDocks: clean up + add more documentation
2008-03-31 00:29:29 +00:00
Brent Yorgey
bc0851f52a
ManageDocks: add avoidStrutsOn, for covering some docks and not others by default.
2008-03-27 20:39:40 +00:00
Brent Yorgey
4e66e0ad1b
ManageDocks: add ability to toggle individual gaps independently
2008-03-27 11:17:22 +00:00
Roman Cheplyaka
c86dd6f097
Haddock fix
2008-03-30 13:44:35 +00:00
Brent Yorgey
a787d4badf
ManageDocks: add warning about making sure gaps are set to zero before switching to avoidStruts, since ToggleStruts won't work otherwise
2008-03-26 23:19:28 +00:00
Andrea Rossato
3ca4966b06
LayoutModifier: reimplement ModifiedLayout using runLayout and more
...
- change modifyLayout type to get the Workspace
- updated ResizeScreen and ManageDocks accordingly.
2008-02-23 07:56:10 +00:00
Nils Anders Danielsson
10862fe143
Small refactoring.
2008-02-10 22:47:56 +00:00
Nils Anders Danielsson
83df2b4415
Fixed off-by-one error which broke strut handling for some panels.
2008-02-10 22:26:00 +00:00
Andrea Rossato
14d7231dd0
ManageDocks: implement AvoidStruts as a layout modifier
2008-01-27 14:43:01 +00:00
Andrea Rossato
07c2c3e7f9
ManageDocks: add emptyLayout definition for supporting the new decoration framework
2008-01-26 18:59:36 +00:00
Andrea Rossato
69453d212a
ManageDocks: some documentation fixes
2007-12-31 10:18:20 +00:00
Spencer Janssen
53571aad1e
AvoidStruts: add support for partial struts
2007-12-22 13:34:25 +00:00