mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: only request page-flip if active
It doesn't make sense to request a page-flip for a disabled output.
Fixes: 84e727daae ("backend/drm: request page-flip event on modeset")
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3528
			
			
This commit is contained in:
		
							parent
							
								
									258bf9be1e
								
							
						
					
					
						commit
						f863b93c05
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -577,7 +577,7 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (pending.modeset) {
 | 
						if (pending.modeset && pending.active) {
 | 
				
			||||||
		flags |= DRM_MODE_PAGE_FLIP_EVENT;
 | 
							flags |= DRM_MODE_PAGE_FLIP_EVENT;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue