mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	window-rules: add fixedPosition property
...to address regression introduced by 57075ce and enables panel/desktop
clients which rely on window rules to remain in the same position when
the usable-area changes (normally because an exclusive layer-shell
clients is started/finished).
Also disallows interactive move/resize, for example by alt +
mouse-press.
Fixes: #1235
			
			
This commit is contained in:
		
							parent
							
								
									9a8a2905ad
								
							
						
					
					
						commit
						368ede7460
					
				
					 7 changed files with 23 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -4,6 +4,7 @@
 | 
			
		|||
#include "regions.h"
 | 
			
		||||
#include "resize_indicator.h"
 | 
			
		||||
#include "view.h"
 | 
			
		||||
#include "window-rules.h"
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
max_move_scale(double pos_cursor, double pos_current,
 | 
			
		||||
| 
						 | 
				
			
			@ -34,6 +35,10 @@ interactive_begin(struct view *view, enum input_mode mode, uint32_t edges)
 | 
			
		|||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (window_rules_get_property(view, "fixedPosition") == LAB_PROP_TRUE) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	switch (mode) {
 | 
			
		||||
	case LAB_INPUT_STATE_MOVE:
 | 
			
		||||
		if (view->fullscreen) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue