mirror of
				https://github.com/wizbright/waybox.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	Fixed new-output notifications in wlroots 0.6.0-0.8.1 with DRM backend
This commit is contained in:
		
							parent
							
								
									8679cf9aa4
								
							
						
					
					
						commit
						a2835c8a64
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,5 @@
 | 
			
		|||
#include <wlr/version.h>
 | 
			
		||||
 | 
			
		||||
#include "waybox/output.h"
 | 
			
		||||
 | 
			
		||||
struct render_data {
 | 
			
		||||
| 
						 | 
				
			
			@ -126,9 +128,12 @@ void new_output_notify(struct wl_listener *listener, void *data) {
 | 
			
		|||
		wlr_output_set_mode(wlr_output, mode);
 | 
			
		||||
		wlr_output_enable(wlr_output, true);
 | 
			
		||||
 | 
			
		||||
#if WLR_VERSION_NUM > 2049
 | 
			
		||||
		// wlroots 0.9.0+
 | 
			
		||||
		if (!wlr_output_commit(wlr_output)) {
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
#endif
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	struct wb_output *output = calloc(1, sizeof(struct wb_output));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue