aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Hooks/ManageDocks.hs (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-06-09Move tests from ManageDocks to tests/Adam Vogt1-13/+12
Ignore-this: 31d51fae83d88e15cdb69f29da003bf7 The change to use a newtype for RectC is kind of ugly, but this way instances are less likely to conflict in the tests. darcs-hash:20110609040220-1499c-3a64ffa1d978d1dcebf648774619b192b3b244e3.gz
2011-05-04Compile with ghc7Mats Rauhala1-2/+1
Ignore-this: 218d2e19835f1e4315c01bd6214899ce darcs-hash:20110504192455-af521-ba19a95226d2527af9fbad8ed902982f2db567db.gz
2010-07-06X.H.ManageDocks: event hook to refresh on new docksTomas Janousek1-0/+15
Ignore-this: 96f931aa19c45acd28bdc2319c6a0cb6 darcs-hash:20100706185834-c9ff5-8f6b33d34eee88122fdb1371703f7924061d2fd9.gz
2010-04-16Use imported `fi' alias for fromIntegral more often.Adam Vogt1-3/+1
Ignore-this: 51040e693066fd7803cc1b108c1a13d5 Also moves `fi' into U.Image to avoid cyclic imports, though XUtils sill exports that definition. darcs-hash:20100416212939-1499c-a12428074d873b1eaea197e1b79c0ca07a96b05f.gz
2010-01-12suppress some warnings under ghc 6.12.1 and clean up redundant imports to ↵Brent Yorgey1-1/+0
get rid of some others. Ignore-this: bf3487b27036b02797d9f528a078d006 darcs-hash:20100112172507-1e371-1b466e62ac727b196330c72c8553116282ef5702.gz
2009-11-19X.H.ManageDocks: ignore struts that cover an entire screen on that screenTomas Janousek1-5/+8
Ignore-this: ad7bbf10c49c9f3e938cdc3d8588e202 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". darcs-hash:20091119145043-c9ff5-b4494537b40d2d44abec5fbcec8ea7c3c3ef1a6b.gz
2009-10-22Refer to modm as the current modMaskAdam Vogt1-6/+6
Ignore-this: d097c7dc1746c55e1d4078a7148f9d5a This makes the config suggestions consistent with the current template. darcs-hash:20091022041126-1499c-5dd63076fdd71a61276cfc8e648bada81d9cc586.gz
2009-10-05Finish a sentence in H.ManageDocks haddocks.Adam Vogt1-1/+1
Ignore-this: 43f4ffc627b3db204d74ed361ef939cf darcs-hash:20091005165312-1499c-d406c742ce083a814826acd31d89b10120cfb250.gz
2009-10-05Add a SetStruts message to H.ManageDocks.Adam Vogt1-13/+43
Ignore-this: 98a76bb48b8a569b459cadc4e6412c06 This patch also uses Data.Set instead of [] for the AvoidStruts constructor to simplify the SetStruts implementation. darcs-hash:20091005164221-1499c-3339a4b57ddaba0e6cb6aaf08fcfb1567063ae35.gz
2009-09-19Factor out direction types and put them in X.U.TypesDaniel Schoepe1-18/+8
Ignore-this: b2255ec2754fcdf797b1ce2c082642ba This patch factors out commonly used direction types like data Direction darcs-hash:20090919191717-7f603-09c283e51a0b886d260008676d71e3daf31f4394.gz
2009-06-26Replace most -fglasgow-exts with specific LANGUAGE pragmasAdam Vogt1-1/+1
Ignore-this: 2274fdd689b0576a76d9f3373e9c7159 darcs-hash:20090626025457-1499c-1d7bdb15732bb3d45e853e140f66fe38fc4fcafa.gz
2009-05-27FloatSnap - calculate gaps instead of snapping against unmanaged windowsAnders Engstrom1-1/+1
Ignore-this: 4378f4c6c4f383c9a35acb503409d865 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. darcs-hash:20090526222942-8978f-2d110fbeb4777d6b019b7f0f647eb2251196b5e8.gz
2009-05-25A.FloatSnap snap to unmanaged docks tooAdam Vogt1-1/+4
Ignore-this: 46a856cae139d2e224ded985a9866ecf darcs-hash:20090525001834-1499c-c4ef9061c280a7f5c7b3a698d86548e8d83d7940.gz
2009-02-05X.U.WindowProperties: Add getProp32 and getProp32s, helpers to get ↵Ismael Carnales1-10/+4
properties from windows Ignore-this: c5481fd5d97b15ca049e2da2605f65c1 darcs-hash:20090205013031-6553f-d106b609838d4ccf3fe4afa448910b897cd5b87c.gz
2008-04-05XMonad.Hooks.ManageDocks: haddock fixLukas Mai1-2/+2
darcs-hash:20080404220532-462cf-db8daa9e11afcd3725489a534f5ab89b2037f0b8.gz
2008-04-02XMonad.Layout.Gaps: new contrib module for manual gap support, in the few ↵Brent Yorgey1-1/+5
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.) darcs-hash:20080402003742-bd4d7-6a773f670180cc60118bca3a0d2a12fa3a445540.gz
2008-03-31XMonad.Hooks.ManageDocks: export checkDocLukas Mai1-2/+2
darcs-hash:20080331012911-462cf-ded8fe64cad63d4bfcc5448ed79420e9e794ec82.gz
2008-03-31move Direction type from WindowNavigation to ManageDocks (ManageDocks will ↵Brent Yorgey1-23/+28
move into the core, taking Direction with it) darcs-hash:20080331010127-bd4d7-972600c072354b2c07a227ade70d4abf80fe418c.gz
2008-03-31ManageDocks: clean up + add more documentationBrent Yorgey1-21/+23
darcs-hash:20080331002929-bd4d7-f7c1572196109f7205eef109460b35539fdc7b45.gz
2008-03-27ManageDocks: add avoidStrutsOn, for covering some docks and not others by ↵Brent Yorgey1-2/+17
default. darcs-hash:20080327203940-bd4d7-7ae319d50280cb13d32d8186d7d8f4b2113c4919.gz
2008-03-27ManageDocks: add ability to toggle individual gaps independentlyBrent Yorgey1-17/+39
darcs-hash:20080327111722-bd4d7-2bafc521feff2d36b641ed2ca6bcff79d684624a.gz
2008-03-30Haddock fixRoman Cheplyaka1-1/+1
darcs-hash:20080330134435-3ebed-a45d16ddc1ee6db2238af9b4c65b90eee53341f3.gz
2008-03-27ManageDocks: add warning about making sure gaps are set to zero before ↵Brent Yorgey1-1/+7
switching to avoidStruts, since ToggleStruts won't work otherwise darcs-hash:20080326231928-bd4d7-fa951c2d9b7a26187a9316842c6cca67a234fa01.gz
2008-02-23LayoutModifier: reimplement ModifiedLayout using runLayout and moreAndrea Rossato1-2/+2
- change modifyLayout type to get the Workspace - updated ResizeScreen and ManageDocks accordingly. darcs-hash:20080223075610-32816-05f373cf73305ce5b41d0c250fb5d6413e72b3b4.gz
2008-02-10Small refactoring.Nils Anders Danielsson1-21/+35
darcs-hash:20080210224756-9990f-b6287e5e35b83c7e6b13ed90d7f8b34720eada36.gz
2008-02-10Fixed off-by-one error which broke strut handling for some panels.Nils Anders Danielsson1-4/+19
darcs-hash:20080210222600-9990f-30f64da2f26b6673e57eb981fc4acfcbcb414744.gz
2008-01-27ManageDocks: implement AvoidStruts as a layout modifierAndrea Rossato1-18/+12
darcs-hash:20080127144301-32816-bab1379fe84653d6d87accdb7c5e47aba0621079.gz
2008-01-26ManageDocks: add emptyLayout definition for supporting the new decoration ↵Andrea Rossato1-0/+3
framework darcs-hash:20080126185936-32816-eaeed6cf2631348fbe1640c778397c6883dae174.gz
2007-12-31ManageDocks: some documentation fixesAndrea Rossato1-1/+4
darcs-hash:20071231101820-32816-2b9d19431d22dfa25d0e0e0baaa11a69b34ff92c.gz
2007-12-22AvoidStruts: add support for partial strutsSpencer Janssen1-40/+43
darcs-hash:20071222133425-a5988-16543bbea84d76ff79aaf9557c8a3754b5136a9e.gz
2007-12-22ManageDocks: ignore desktop windows alsoSpencer Janssen1-3/+4
darcs-hash:20071222113808-a5988-475ba24c43ec66b49cc621f029bf82a9800a478a.gz
2007-12-13Add support for _NET_WM_STRUT_PARTIALSpencer Janssen1-9/+11
darcs-hash:20071213021704-a5988-09d4118b417f1e25f1f640cc28d5e3fee5af8276.gz
2007-12-10ManageDocks: when there are struts on opposing edges, the right/bottom strutSpencer Janssen1-2/+3
was ignored. TODO: quickchecks darcs-hash:20071210021030-a5988-652b63b2819da15c435f7411bc8bc60d679a25a0.gz
2007-12-09Update ManageDocks to the new ManageHook system, remove the gap setting code ↵Spencer Janssen1-84/+61
in favor of AvoidStruts darcs-hash:20071209134225-a5988-dd485354446755d6fff36168d11ba33fc91cd3e2.gz
2007-12-08Remove XMonad.Operations importsSpencer Janssen1-1/+0
darcs-hash:20071208000547-a5988-874ebc1bfa76ad6ec2191812240fa2303b2d531c.gz
2007-12-08Prune more importsSpencer Janssen1-2/+0
darcs-hash:20071207235116-a5988-563cabf7a60a879beb0eb54c9e352a1c27b7729f.gz
2007-12-08Remove redundant importsSpencer Janssen1-1/+0
darcs-hash:20071207233827-a5988-9e41d51120499637f14d115f2cf1428edaf326bb.gz
2007-11-19Miscellaneous spell-checkingShachaf Ben-Kiki1-1/+1
darcs-hash:20071118230319-bffde-6c56202afece4ecc55d48d37bde3f80edaff66f7.gz
2007-11-14ManageDocks.hs: haddock fixesAndrea Rossato1-6/+7
darcs-hash:20071114191327-32816-63abb4c8987e156def305e1ce6dfbbb068ad562a.gz
2007-11-14pattern guards and newtype deriving required for ManageDocks.hs to build!Don Stewart1-1/+3
darcs-hash:20071114032625-cba2c-2aabbcd9740c70a30eca7658a5e5596fcf08a216.gz
2007-11-13add ToggleStruts capability to avoidStruts.David Roundy1-9/+18
darcs-hash:20071113203434-72aca-760330df77f5c8f60507321ab9bb648284f8c7ce.gz
2007-11-10fix bug in avoidStruts.David Roundy1-1/+1
darcs-hash:20071110214205-72aca-907faf271a9ca27ebd0cacc58ff3556e8f1a9d56.gz
2007-11-01Change the type of properties from Word32 to CLongMats Jansborg1-2/+2
darcs-hash:20071101192730-7344d-1cfbaa5597e39a9fa46b661fd5c110629db3912c.gz
2007-11-08fix bug in avoidStruts.David Roundy1-1/+14
I've now tested this module, and it works on x86--but doesn't work on x86-64, because ManageDocks doesn't work on 64-bit. But in any case, it works almost perfectly, with no user intervention needed (and no special hooks). The only catch is that it doesn't notice when a panel disappears, so the layout won't adjust until the next refresh (e.g. if you change focus, layout or workspace). darcs-hash:20071108175250-72aca-13b5c836f9b263465aee9fe7a5f1b1e875eb8f60.gz
2007-11-06Add LANGUAGE pragmas for ManageDocksSpencer Janssen1-0/+1
darcs-hash:20071106021507-a5988-dbc0273c1eeb426ae2eda2e18949825db4c5242e.gz
2007-11-01HierarchifySpencer Janssen1-4/+4
darcs-hash:20071101201059-a5988-fc1f1262bec1b69e13ba18ae7cefeafc8c4471d4.gz
2007-11-01Use hierarchical module names from the coreSpencer Janssen1-2/+2
darcs-hash:20071101182824-a5988-e02ade829d66f49dd6b303b7a797933251c44164.gz
2007-10-24code to define a strut-avoiding layout.David Roundy1-0/+19
darcs-hash:20071023220025-72aca-a741feec986227fcd60d4a7e09be98f163d6b118.gz
2007-10-23STRUT aware gap toggling (clean patch)mail1-8/+40
Without this patch, ManageDocks would only set the gap according to a window’s STRUT when the window is first mapped. This information would then get lost when the user toggle the gap. Now, when the user toggles the Gap, all present windows are scanned for STRUT settings, and the gap is set accordingly. No need to manually configure the gap anymore. This is the same patch as before, but independant of the Hooks patches, and with more documentation. darcs-hash:20071022220132-c9905-fb953a07a9c15ed37a40b47d83763f434de47fcf.gz
2007-10-10Fix EwmhDesktops, ManageDocks, and SetWMName compilation for amd64Alex Tarkovsky1-30/+30
darcs-hash:20071010213853-bd4fb-66e3492b55dc7aeb9dee18201a66f540b52e8b53.gz