aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Hooks/ManageDocks.hs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* suppress some warnings under ghc 6.12.1 and clean up redundant imports to ↵Brent Yorgey2010-01-121-1/+0
| | | | | | | | get rid of some others. Ignore-this: bf3487b27036b02797d9f528a078d006 darcs-hash:20100112172507-1e371-1b466e62ac727b196330c72c8553116282ef5702.gz
* X.H.ManageDocks: ignore struts that cover an entire screen on that screenTomas Janousek2009-11-191-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
* Refer to modm as the current modMaskAdam Vogt2009-10-221-6/+6
| | | | | | | | Ignore-this: d097c7dc1746c55e1d4078a7148f9d5a This makes the config suggestions consistent with the current template. darcs-hash:20091022041126-1499c-5dd63076fdd71a61276cfc8e648bada81d9cc586.gz
* Finish a sentence in H.ManageDocks haddocks.Adam Vogt2009-10-051-1/+1
| | | | | | Ignore-this: 43f4ffc627b3db204d74ed361ef939cf darcs-hash:20091005165312-1499c-d406c742ce083a814826acd31d89b10120cfb250.gz
* Add a SetStruts message to H.ManageDocks.Adam Vogt2009-10-051-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
* Factor out direction types and put them in X.U.TypesDaniel Schoepe2009-09-191-18/+8
| | | | | | | | | Ignore-this: b2255ec2754fcdf797b1ce2c082642ba This patch factors out commonly used direction types like data Direction darcs-hash:20090919191717-7f603-09c283e51a0b886d260008676d71e3daf31f4394.gz
* Replace most -fglasgow-exts with specific LANGUAGE pragmasAdam Vogt2009-06-261-1/+1
| | | | | | Ignore-this: 2274fdd689b0576a76d9f3373e9c7159 darcs-hash:20090626025457-1499c-1d7bdb15732bb3d45e853e140f66fe38fc4fcafa.gz
* FloatSnap - calculate gaps instead of snapping against unmanaged windowsAnders Engstrom2009-05-271-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
* A.FloatSnap snap to unmanaged docks tooAdam Vogt2009-05-251-1/+4
| | | | | | Ignore-this: 46a856cae139d2e224ded985a9866ecf darcs-hash:20090525001834-1499c-c4ef9061c280a7f5c7b3a698d86548e8d83d7940.gz
* X.U.WindowProperties: Add getProp32 and getProp32s, helpers to get ↵Ismael Carnales2009-02-051-10/+4
| | | | | | | | properties from windows Ignore-this: c5481fd5d97b15ca049e2da2605f65c1 darcs-hash:20090205013031-6553f-d106b609838d4ccf3fe4afa448910b897cd5b87c.gz
* XMonad.Hooks.ManageDocks: haddock fixLukas Mai2008-04-051-2/+2
| | | | darcs-hash:20080404220532-462cf-db8daa9e11afcd3725489a534f5ab89b2037f0b8.gz
* XMonad.Layout.Gaps: new contrib module for manual gap support, in the few ↵Brent Yorgey2008-04-021-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
* XMonad.Hooks.ManageDocks: export checkDocLukas Mai2008-03-311-2/+2
| | | | darcs-hash:20080331012911-462cf-ded8fe64cad63d4bfcc5448ed79420e9e794ec82.gz
* move Direction type from WindowNavigation to ManageDocks (ManageDocks will ↵Brent Yorgey2008-03-311-23/+28
| | | | | | move into the core, taking Direction with it) darcs-hash:20080331010127-bd4d7-972600c072354b2c07a227ade70d4abf80fe418c.gz
* ManageDocks: clean up + add more documentationBrent Yorgey2008-03-311-21/+23
| | | | darcs-hash:20080331002929-bd4d7-f7c1572196109f7205eef109460b35539fdc7b45.gz
* ManageDocks: add avoidStrutsOn, for covering some docks and not others by ↵Brent Yorgey2008-03-271-2/+17
| | | | | | default. darcs-hash:20080327203940-bd4d7-7ae319d50280cb13d32d8186d7d8f4b2113c4919.gz
* ManageDocks: add ability to toggle individual gaps independentlyBrent Yorgey2008-03-271-17/+39
| | | | darcs-hash:20080327111722-bd4d7-2bafc521feff2d36b641ed2ca6bcff79d684624a.gz
* Haddock fixRoman Cheplyaka2008-03-301-1/+1
| | | | darcs-hash:20080330134435-3ebed-a45d16ddc1ee6db2238af9b4c65b90eee53341f3.gz
* ManageDocks: add warning about making sure gaps are set to zero before ↵Brent Yorgey2008-03-271-1/+7
| | | | | | switching to avoidStruts, since ToggleStruts won't work otherwise darcs-hash:20080326231928-bd4d7-fa951c2d9b7a26187a9316842c6cca67a234fa01.gz
* LayoutModifier: reimplement ModifiedLayout using runLayout and moreAndrea Rossato2008-02-231-2/+2
| | | | | | | - change modifyLayout type to get the Workspace - updated ResizeScreen and ManageDocks accordingly. darcs-hash:20080223075610-32816-05f373cf73305ce5b41d0c250fb5d6413e72b3b4.gz
* Small refactoring.Nils Anders Danielsson2008-02-101-21/+35
| | | | darcs-hash:20080210224756-9990f-b6287e5e35b83c7e6b13ed90d7f8b34720eada36.gz
* Fixed off-by-one error which broke strut handling for some panels.Nils Anders Danielsson2008-02-101-4/+19
| | | | darcs-hash:20080210222600-9990f-30f64da2f26b6673e57eb981fc4acfcbcb414744.gz
* ManageDocks: implement AvoidStruts as a layout modifierAndrea Rossato2008-01-271-18/+12
| | | | darcs-hash:20080127144301-32816-bab1379fe84653d6d87accdb7c5e47aba0621079.gz
* ManageDocks: add emptyLayout definition for supporting the new decoration ↵Andrea Rossato2008-01-261-0/+3
| | | | | | framework darcs-hash:20080126185936-32816-eaeed6cf2631348fbe1640c778397c6883dae174.gz
* ManageDocks: some documentation fixesAndrea Rossato2007-12-311-1/+4
| | | | darcs-hash:20071231101820-32816-2b9d19431d22dfa25d0e0e0baaa11a69b34ff92c.gz
* AvoidStruts: add support for partial strutsSpencer Janssen2007-12-221-40/+43
| | | | darcs-hash:20071222133425-a5988-16543bbea84d76ff79aaf9557c8a3754b5136a9e.gz
* ManageDocks: ignore desktop windows alsoSpencer Janssen2007-12-221-3/+4
| | | | darcs-hash:20071222113808-a5988-475ba24c43ec66b49cc621f029bf82a9800a478a.gz
* Add support for _NET_WM_STRUT_PARTIALSpencer Janssen2007-12-131-9/+11
| | | | darcs-hash:20071213021704-a5988-09d4118b417f1e25f1f640cc28d5e3fee5af8276.gz
* ManageDocks: when there are struts on opposing edges, the right/bottom strutSpencer Janssen2007-12-101-2/+3
| | | | | | was ignored. TODO: quickchecks darcs-hash:20071210021030-a5988-652b63b2819da15c435f7411bc8bc60d679a25a0.gz
* Update ManageDocks to the new ManageHook system, remove the gap setting code ↵Spencer Janssen2007-12-091-84/+61
| | | | | | in favor of AvoidStruts darcs-hash:20071209134225-a5988-dd485354446755d6fff36168d11ba33fc91cd3e2.gz
* Remove XMonad.Operations importsSpencer Janssen2007-12-081-1/+0
| | | | darcs-hash:20071208000547-a5988-874ebc1bfa76ad6ec2191812240fa2303b2d531c.gz
* Prune more importsSpencer Janssen2007-12-081-2/+0
| | | | darcs-hash:20071207235116-a5988-563cabf7a60a879beb0eb54c9e352a1c27b7729f.gz
* Remove redundant importsSpencer Janssen2007-12-081-1/+0
| | | | darcs-hash:20071207233827-a5988-9e41d51120499637f14d115f2cf1428edaf326bb.gz
* Miscellaneous spell-checkingShachaf Ben-Kiki2007-11-191-1/+1
| | | | darcs-hash:20071118230319-bffde-6c56202afece4ecc55d48d37bde3f80edaff66f7.gz
* ManageDocks.hs: haddock fixesAndrea Rossato2007-11-141-6/+7
| | | | darcs-hash:20071114191327-32816-63abb4c8987e156def305e1ce6dfbbb068ad562a.gz
* pattern guards and newtype deriving required for ManageDocks.hs to build!Don Stewart2007-11-141-1/+3
| | | | darcs-hash:20071114032625-cba2c-2aabbcd9740c70a30eca7658a5e5596fcf08a216.gz
* add ToggleStruts capability to avoidStruts.David Roundy2007-11-131-9/+18
| | | | darcs-hash:20071113203434-72aca-760330df77f5c8f60507321ab9bb648284f8c7ce.gz
* fix bug in avoidStruts.David Roundy2007-11-101-1/+1
| | | | darcs-hash:20071110214205-72aca-907faf271a9ca27ebd0cacc58ff3556e8f1a9d56.gz
* Change the type of properties from Word32 to CLongMats Jansborg2007-11-011-2/+2
| | | | darcs-hash:20071101192730-7344d-1cfbaa5597e39a9fa46b661fd5c110629db3912c.gz
* fix bug in avoidStruts.David Roundy2007-11-081-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
* Add LANGUAGE pragmas for ManageDocksSpencer Janssen2007-11-061-0/+1
| | | | darcs-hash:20071106021507-a5988-dbc0273c1eeb426ae2eda2e18949825db4c5242e.gz
* HierarchifySpencer Janssen2007-11-011-0/+153
darcs-hash:20071101201059-a5988-fc1f1262bec1b69e13ba18ae7cefeafc8c4471d4.gz