mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	window-rules: support matchOnce attribute
...allowing a rule to be applied to only the first window matching a
particular criteria. For example, the following can be used to apply a
window rule to lxqt-panel but not its configuration window with the same
app_id:
    <windowRules>
      <windowRule identifier="lxqt-panel" matchOnce="true">
        <skipTaskbar>yes</skipTaskbar>
        <action name="MoveTo" x="0" y="0" />
        <action name="ToggleAlwaysOnTop"/>
      </windowRule>
    </windowRules>
			
			
This commit is contained in:
		
							parent
							
								
									f6c3a3d7c3
								
							
						
					
					
						commit
						41de529fff
					
				
					 5 changed files with 73 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -21,6 +21,7 @@ enum property {
 | 
			
		|||
struct window_rule {
 | 
			
		||||
	char *identifier;
 | 
			
		||||
	char *title;
 | 
			
		||||
	bool match_once;
 | 
			
		||||
 | 
			
		||||
	enum window_rule_event event;
 | 
			
		||||
	struct wl_list actions;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue