vm: fix calling monitor layout notifier
This commit is contained in:
		
							parent
							
								
									4095f3c5eb
								
							
						
					
					
						commit
						ab469e4473
					
				| @ -1030,15 +1030,19 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM): | |||||||
| 
 | 
 | ||||||
|     # TODO event, extension |     # TODO event, extension | ||||||
|     def notify_monitor_layout(self): |     def notify_monitor_layout(self): | ||||||
|         monitor_layout = qubes.monitor_layout.get_monitor_layout() |         try: | ||||||
|  |             import qubes.monitorlayoutnotify | ||||||
|  |             monitor_layout = qubes.monitorlayoutnotify.get_monitor_layout() | ||||||
| 
 | 
 | ||||||
|         # notify qube only if we've got a non-empty monitor_layout or else we |             # notify qube only if we've got a non-empty monitor_layout or else we | ||||||
|         # break proper qube resolution set by gui-agent |             # break proper qube resolution set by gui-agent | ||||||
|         if not monitor_layout: |             if not monitor_layout: | ||||||
|             return |                 return | ||||||
| 
 | 
 | ||||||
|         self.log.info('Sending monitor layout') |             self.log.info('Sending monitor layout') | ||||||
|         qubes.monitor_layout.notify_vm(self, monitor_layout) |             qubes.monitorlayoutnotify.notify_vm(self, monitor_layout) | ||||||
|  |         except ImportError: | ||||||
|  |             self.log.warning('Monitor layout notify module not installed') | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     # TODO move to storage |     # TODO move to storage | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski-Górecki
						Marek Marczykowski-Górecki