@@ -73,6 +73,9 @@ def on_domain_add(self, app, _event, vm, **_kwargs):
7373 'not exists' , default_dispvm )
7474 vm .default_dispvm = None
7575
76+ if 'gui-events-max-delay' not in vm .features :
77+ vm .features ['gui-events-max-delay' ] = 100
78+
7679 @qubes .ext .handler ('features-request' )
7780 def on_features_request (self , vm , _event , untrusted_features ):
7881 '''Handle whonix-ws/whonix-gw template advertising itself'''
@@ -89,10 +92,15 @@ def on_features_request(self, vm, _event, untrusted_features):
8992
9093 @qubes .ext .handler ('domain-load' )
9194 def on_domain_load (self , vm , _event ):
92- '''Retroactively add tags to sys-whonix and anon-whonix'''
95+ '''Retroactively add tags to sys-whonix and anon-whonix. Also enable
96+ event buffering if it's not already enabled.
97+ '''
9398 if hasattr (vm , 'template' ) and 'whonix-gw' in vm .template .features \
9499 and 'anon-gateway' not in vm .tags :
95100 vm .tags .add ('anon-gateway' )
96101 if hasattr (vm , 'template' ) and 'whonix-ws' in vm .template .features \
97102 and 'anon-vm' not in vm .tags :
98103 vm .tags .add ('anon-vm' )
104+ if hasattr (vm , 'template' ) and 'whonix-ws' in vm .template .features \
105+ and 'gui-events-max-delay' not in vm .features :
106+ vm .features ['gui-events-max-delay' ] = 100
0 commit comments