mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	fix adaptive sync fullscreen
This commit is contained in:
		
							parent
							
								
									785a34e8ad
								
							
						
					
					
						commit
						1b5af86402
					
				
					 2 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -810,9 +810,6 @@ output_remove_virtual(struct server *server, const char *output_name)
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
output_enable_adaptive_sync(struct wlr_output *output, bool enabled)
 | 
					output_enable_adaptive_sync(struct wlr_output *output, bool enabled)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (output->pending.adaptive_sync_enabled == enabled) {
 | 
					 | 
				
			||||||
		return;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	wlr_output_enable_adaptive_sync(output, enabled);
 | 
						wlr_output_enable_adaptive_sync(output, enabled);
 | 
				
			||||||
	if (!wlr_output_test(output)) {
 | 
						if (!wlr_output_test(output)) {
 | 
				
			||||||
		wlr_output_enable_adaptive_sync(output, false);
 | 
							wlr_output_enable_adaptive_sync(output, false);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1877,7 +1877,7 @@ view_destroy(struct view *view)
 | 
				
			||||||
		view->fullscreen = false;
 | 
							view->fullscreen = false;
 | 
				
			||||||
		desktop_update_top_layer_visiblity(server);
 | 
							desktop_update_top_layer_visiblity(server);
 | 
				
			||||||
		if (rc.adaptive_sync == LAB_ADAPTIVE_SYNC_FULLSCREEN) {
 | 
							if (rc.adaptive_sync == LAB_ADAPTIVE_SYNC_FULLSCREEN) {
 | 
				
			||||||
			wlr_output_enable_adaptive_sync(view->output->wlr_output, false);
 | 
								set_adaptive_sync_fullscreen(view);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue