mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	fix issue #140, dont set pointer mode if no floating_mod
This commit is contained in:
		
							parent
							
								
									87aa828005
								
							
						
					
					
						commit
						b359429e90
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -430,8 +430,10 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
 | 
				
			||||||
		return EVENT_PASSTHROUGH;
 | 
							return EVENT_PASSTHROUGH;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// set pointer mode
 | 
						// set pointer mode only if floating mod has been set
 | 
				
			||||||
 | 
						if(config->floating_mod) {
 | 
				
			||||||
		pointer_mode_set(button, !(modifiers->mods ^ config->floating_mod));
 | 
							pointer_mode_set(button, !(modifiers->mods ^ config->floating_mod));
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Return if mode has been set
 | 
						// Return if mode has been set
 | 
				
			||||||
	if (pointer_state.mode) {
 | 
						if (pointer_state.mode) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue