|
|
|
@ -10,7 +10,7 @@ let XML = Prelude.XML
|
|
|
|
|
|
|
|
|
|
let Init = Sigil.Init
|
|
|
|
|
|
|
|
|
|
let forward = λ(x : Text) → { local = x, route = x }
|
|
|
|
|
let forward = λ(x : Text) → { report = x, rom = x }
|
|
|
|
|
|
|
|
|
|
let Domain/Type = { name : Text, layer : Natural, attrs : Attributes }
|
|
|
|
|
|
|
|
|
@ -37,7 +37,7 @@ let nitpickerDomains =
|
|
|
|
|
{ content = "client"
|
|
|
|
|
, label = "no"
|
|
|
|
|
, focus = "click"
|
|
|
|
|
, hover = "transient"
|
|
|
|
|
, hover = "always"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
, { name = "other", layer = 2, attrs = toMap { content = "client" } }
|
|
|
|
@ -60,7 +60,7 @@ let BinaryField = { binary : Text }
|
|
|
|
|
|
|
|
|
|
in λ ( params
|
|
|
|
|
: { decorator : BinaryField
|
|
|
|
|
, layouter : BinaryField
|
|
|
|
|
, window_layouter : BinaryField
|
|
|
|
|
, nitpicker : BinaryField
|
|
|
|
|
, pointer : BinaryField
|
|
|
|
|
, wm : BinaryField
|
|
|
|
@ -77,7 +77,6 @@ in λ ( params
|
|
|
|
|
, binary = params.nitpicker.binary
|
|
|
|
|
, resources = Init.Resources::{ ram = Sigil.units.MiB 4 }
|
|
|
|
|
, config = Init.Config::{
|
|
|
|
|
, attributes = toMap { focus = "rom" }
|
|
|
|
|
, content =
|
|
|
|
|
[ XML.leaf
|
|
|
|
|
{ name = "capture"
|
|
|
|
@ -94,6 +93,8 @@ in λ ( params
|
|
|
|
|
, focus = "yes"
|
|
|
|
|
, clicked = "yes"
|
|
|
|
|
, keystate = "no"
|
|
|
|
|
, displays = "yes"
|
|
|
|
|
, pointer = "yes"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
, XML.leaf
|
|
|
|
@ -133,12 +134,19 @@ in λ ( params
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, provides = [ "Capture", "Event" ]
|
|
|
|
|
, consumeReports =
|
|
|
|
|
[ { rom = "focus", report = "sculpt-only?" } ]
|
|
|
|
|
, produceReports =
|
|
|
|
|
let f =
|
|
|
|
|
λ(report : Text) →
|
|
|
|
|
{ report, rom = "nitpicker_" ++ local }
|
|
|
|
|
{ report, rom = "nitpicker_" ++ report }
|
|
|
|
|
|
|
|
|
|
in [ f "hover", f "clicked", f "focus" ]
|
|
|
|
|
in [ f "hover"
|
|
|
|
|
, f "clicked"
|
|
|
|
|
, f "focus"
|
|
|
|
|
, f "displays"
|
|
|
|
|
, f "pointer"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, pointer =
|
|
|
|
|
Init.Child.flat
|
|
|
|
@ -148,7 +156,10 @@ in λ ( params
|
|
|
|
|
, attributes = toMap { shape = "yes" }
|
|
|
|
|
}
|
|
|
|
|
, provides = [ "Report" ]
|
|
|
|
|
, reportRoms = [ forward "hover", forward "xray" ]
|
|
|
|
|
, consumeReports =
|
|
|
|
|
[ { rom = "hover", report = "nitpicker_hover" }
|
|
|
|
|
, forward "xray"
|
|
|
|
|
]
|
|
|
|
|
, resources = Init.Resources::{ ram = Sigil.units.MiB 2 }
|
|
|
|
|
}
|
|
|
|
|
, decorator =
|
|
|
|
@ -182,7 +193,7 @@ in λ ( params
|
|
|
|
|
, layouter =
|
|
|
|
|
Init.Child.flat
|
|
|
|
|
Init.Child.Attributes::{
|
|
|
|
|
, binary = params.layouter.binary
|
|
|
|
|
, binary = params.window_layouter.binary
|
|
|
|
|
, resources = Init.Resources::{ ram = Sigil.units.MiB 4 }
|
|
|
|
|
, consumeReports =
|
|
|
|
|
[ forward "decorator_margins"
|
|
|
|
@ -191,11 +202,11 @@ in λ ( params
|
|
|
|
|
, { rom = "rules", report = "layouter_rules" }
|
|
|
|
|
, forward "window_list"
|
|
|
|
|
]
|
|
|
|
|
, procdueReports =
|
|
|
|
|
, produceReports =
|
|
|
|
|
[ forward "window_layout"
|
|
|
|
|
, forward "resize_request"
|
|
|
|
|
, { report = "focus", rom = "layouter_focus" }
|
|
|
|
|
, { repot = "rules", rom = "layouter_rules" }
|
|
|
|
|
, { report = "rules", rom = "layouter_rules" }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
, wm =
|
|
|
|
@ -233,10 +244,13 @@ in λ ( params
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
, routes = [ Init.ServiceRoute.parent "Timer" ]
|
|
|
|
|
, services =
|
|
|
|
|
[ Init.ServiceRoute.child "Gui" "wm"
|
|
|
|
|
, Init.ServiceRoute.child "Report" "wm"
|
|
|
|
|
[ Init.ServiceRoute.child "Capture" "nitpicker"
|
|
|
|
|
, Init.ServiceRoute.child "Event" "nitpicker"
|
|
|
|
|
, Init.ServiceRoute.child "Gui" "wm"
|
|
|
|
|
, Init.ServiceRoute.child "ROM" "wm"
|
|
|
|
|
, Init.ServiceRoute.child "Report" "wm"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
Init.Attributes::{ binary }
|
|
|
|
|
Init.Attributes::{ provides = [ "Capture", "Event", "Gui" ] }
|
|
|
|
|