mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-03 04:26:45 +00:00
demo.run: showcase the use of 'nit_focus'
This commit is contained in:
parent
f94f96c3ee
commit
1514667b42
@ -11,6 +11,7 @@ set build_components {
|
|||||||
core init
|
core init
|
||||||
drivers/timer
|
drivers/timer
|
||||||
server/nitpicker app/pointer app/status_bar app/global_keys_handler
|
server/nitpicker app/pointer app/status_bar app/global_keys_handler
|
||||||
|
app/nit_focus
|
||||||
server/liquid_framebuffer app/launchpad app/scout
|
server/liquid_framebuffer app/launchpad app/scout
|
||||||
test/nitpicker server/nitlog
|
test/nitpicker server/nitlog
|
||||||
drivers/framebuffer drivers/input
|
drivers/framebuffer drivers/input
|
||||||
@ -106,10 +107,12 @@ append config {
|
|||||||
<start name="report_rom">
|
<start name="report_rom">
|
||||||
<resource name="RAM" quantum="1M"/>
|
<resource name="RAM" quantum="1M"/>
|
||||||
<provides> <service name="Report"/> <service name="ROM"/> </provides>
|
<provides> <service name="Report"/> <service name="ROM"/> </provides>
|
||||||
<config>
|
<config verbose="no">
|
||||||
<policy label="status_bar -> focus" report="nitpicker -> focus"/>
|
<policy label="status_bar -> focus" report="nitpicker -> focus"/>
|
||||||
<policy label="nitpicker_config -> xray" report="global_keys_handler -> xray"/>
|
<policy label="nitpicker_config -> xray" report="global_keys_handler -> xray"/>
|
||||||
<policy label="global_keys_handler -> hover" report="nitpicker -> hover"/>
|
<policy label="global_keys_handler -> hover" report="nitpicker -> hover"/>
|
||||||
|
<policy label="nit_focus -> clicked" report="nitpicker -> clicked"/>
|
||||||
|
<policy label="nitpicker -> focus" report="nit_focus -> focus"/>
|
||||||
</config>
|
</config>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
@ -122,8 +125,10 @@ append config {
|
|||||||
<attribute name="enabled" /> </input>
|
<attribute name="enabled" /> </input>
|
||||||
|
|
||||||
<output node="config">
|
<output node="config">
|
||||||
|
<attribute name="focus" value="rom"/>
|
||||||
<inline>
|
<inline>
|
||||||
<report focus="yes" xray="yes" hover="yes" keystate="yes"/>
|
<report focus="yes" xray="yes" hover="yes" keystate="yes"
|
||||||
|
clicked="yes"/>
|
||||||
<domain name="pointer" layer="1" origin="pointer"
|
<domain name="pointer" layer="1" origin="pointer"
|
||||||
content="client" label="no"/>
|
content="client" label="no"/>
|
||||||
<domain name="panel" layer="2"
|
<domain name="panel" layer="2"
|
||||||
@ -199,6 +204,8 @@ append config {
|
|||||||
<route>
|
<route>
|
||||||
<service name="ROM" label="nitpicker.config">
|
<service name="ROM" label="nitpicker.config">
|
||||||
<child name="nitpicker_config"/> </service>
|
<child name="nitpicker_config"/> </service>
|
||||||
|
<service name="ROM" label="focus">
|
||||||
|
<child name="report_rom"/> </service>
|
||||||
<service name="Report">
|
<service name="Report">
|
||||||
<child name="report_rom"/> </service>
|
<child name="report_rom"/> </service>
|
||||||
<any-service> <parent/> <any-child/> </any-service>
|
<any-service> <parent/> <any-child/> </any-service>
|
||||||
@ -207,6 +214,17 @@ append config {
|
|||||||
|
|
||||||
<start name="pointer">
|
<start name="pointer">
|
||||||
<resource name="RAM" quantum="1M"/>
|
<resource name="RAM" quantum="1M"/>
|
||||||
|
<config/>
|
||||||
|
</start>
|
||||||
|
|
||||||
|
<start name="nit_focus">
|
||||||
|
<resource name="RAM" quantum="1M"/>
|
||||||
|
<config> <default-policy focus="yes"/> </config>
|
||||||
|
<route>
|
||||||
|
<service name="ROM" label="clicked"> <child name="report_rom"/> </service>
|
||||||
|
<service name="Report"> <child name="report_rom"/> </service>
|
||||||
|
<any-service> <parent/> </any-service>
|
||||||
|
</route>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
<start name="status_bar">
|
<start name="status_bar">
|
||||||
@ -257,6 +275,7 @@ set boot_modules {
|
|||||||
core ld.lib.so init
|
core ld.lib.so init
|
||||||
timer
|
timer
|
||||||
nitpicker pointer status_bar report_rom rom_filter global_keys_handler
|
nitpicker pointer status_bar report_rom rom_filter global_keys_handler
|
||||||
|
nit_focus
|
||||||
liquid_fb launchpad scout testnit nitlog
|
liquid_fb launchpad scout testnit nitlog
|
||||||
launchpad.config
|
launchpad.config
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user