mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	edges: do not apply resistance to invisible edges
This commit is contained in:
		
							parent
							
								
									551feaca0a
								
							
						
					
					
						commit
						29a26d5ff7
					
				
					 6 changed files with 235 additions and 37 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0-only
 | 
			
		||||
#include "edges.h"
 | 
			
		||||
#include "input/keyboard.h"
 | 
			
		||||
#include "labwc.h"
 | 
			
		||||
#include "regions.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -123,6 +124,9 @@ interactive_begin(struct view *view, enum input_mode mode, uint32_t edges)
 | 
			
		|||
	if (rc.resize_indicator) {
 | 
			
		||||
		resize_indicator_show(view);
 | 
			
		||||
	}
 | 
			
		||||
	if (rc.window_edge_strength) {
 | 
			
		||||
		edges_calculate_visibility(server, view);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Returns true if view was snapped to any edge */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue