mirror of
				https://github.com/swaywm/sway.git
				synced 2025-10-29 05:40:18 -04:00 
			
		
		
		
	output: drop current_mode
This is now unused.
This commit is contained in:
		
							parent
							
								
									170598d71b
								
							
						
					
					
						commit
						f8ddd97e0e
					
				
					 3 changed files with 0 additions and 7 deletions
				
			
		|  | @ -33,8 +33,6 @@ struct sway_output { | |||
| 	int width, height; // transformed buffer size
 | ||||
| 	enum wl_output_subpixel detected_subpixel; | ||||
| 	enum scale_filter_mode scale_filter; | ||||
| 	// last applied mode when the output is powered off
 | ||||
| 	struct wlr_output_mode *current_mode; | ||||
| 
 | ||||
| 	bool enabling, enabled; | ||||
| 	list_t *workspaces; | ||||
|  |  | |||
|  | @ -510,10 +510,6 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) { | |||
| 	struct wlr_output_state pending = {0}; | ||||
| 	queue_output_config(oc, output, &pending); | ||||
| 
 | ||||
| 	if (!oc || oc->power != 0) { | ||||
| 		output->current_mode = pending.mode; | ||||
| 	} | ||||
| 
 | ||||
| 	sway_log(SWAY_DEBUG, "Committing output %s", wlr_output->name); | ||||
| 	if (!wlr_output_commit_state(wlr_output, &pending)) { | ||||
| 		// Failed to commit output changes, maybe the output is missing a CRTC.
 | ||||
|  |  | |||
|  | @ -271,7 +271,6 @@ void output_disable(struct sway_output *output) { | |||
| 	list_del(root->outputs, index); | ||||
| 
 | ||||
| 	output->enabled = false; | ||||
| 	output->current_mode = NULL; | ||||
| 
 | ||||
| 	arrange_root(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Ser
						Simon Ser