mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #3385 from robertgzr/reset_output_mapping
cursor: allow mapping to all outputs
This commit is contained in:
		
						commit
						da8f24de1d
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -428,6 +428,12 @@ static void seat_apply_input_config(struct sway_seat *seat,
 | 
				
			||||||
	if (mapped_to_output != NULL) {
 | 
						if (mapped_to_output != NULL) {
 | 
				
			||||||
		wlr_log(WLR_DEBUG, "Mapping input device %s to output %s",
 | 
							wlr_log(WLR_DEBUG, "Mapping input device %s to output %s",
 | 
				
			||||||
			sway_device->input_device->identifier, mapped_to_output);
 | 
								sway_device->input_device->identifier, mapped_to_output);
 | 
				
			||||||
 | 
							if (strcmp("*", mapped_to_output) == 0) {
 | 
				
			||||||
 | 
								wlr_cursor_map_input_to_output(seat->cursor->cursor,
 | 
				
			||||||
 | 
									sway_device->input_device->wlr_device, NULL);
 | 
				
			||||||
 | 
								wlr_log(WLR_DEBUG, "Reset output mapping");
 | 
				
			||||||
 | 
								return;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		struct sway_output *output = output_by_name_or_id(mapped_to_output);
 | 
							struct sway_output *output = output_by_name_or_id(mapped_to_output);
 | 
				
			||||||
		if (output) {
 | 
							if (output) {
 | 
				
			||||||
			wlr_cursor_map_input_to_output(seat->cursor->cursor,
 | 
								wlr_cursor_map_input_to_output(seat->cursor->cursor,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue