gui: adapt trigger for dom0 input devices

This commit is contained in:
Frédéric Pierret (fepitre) 2020-09-20 18:59:09 +02:00
parent 480aeee9de
commit f744d89803
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -118,9 +118,9 @@ class GUI(qubes.ext.Extension):
for attached_vm in attached_vms: for attached_vm in attached_vms:
attached_vm.untrusted_qdb.write('/qubes-gui-domain-xid', attached_vm.untrusted_qdb.write('/qubes-gui-domain-xid',
str(vm.xid)) str(vm.xid))
if vm.features.get('input-proxy-ps2', None) == '1': if vm.features.get('input-dom0-proxy', None):
yield from asyncio.create_subprocess_exec( yield from asyncio.create_subprocess_exec(
'/usr/bin/qubes-input-trigger-ps2') '/usr/bin/qubes-input-trigger')
@qubes.ext.handler('property-reset:keyboard_layout') @qubes.ext.handler('property-reset:keyboard_layout')
def on_keyboard_reset(self, vm, event, name, oldvalue=None): def on_keyboard_reset(self, vm, event, name, oldvalue=None):