mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	common: add node-type.c/h (renaming ssd_part_type to lab_node_type)
ssd_part_type contains several node types that are not actually part of server-side decorations (ROOT, MENU, OSD, etc.) Rename it accordingly and move it to a common location, along with some related conversion/comparison functions.
This commit is contained in:
		
							parent
							
								
									502473f343
								
							
						
					
					
						commit
						1188534876
					
				
					 28 changed files with 345 additions and 315 deletions
				
			
		| 
						 | 
				
			
			@ -2,9 +2,9 @@
 | 
			
		|||
#ifndef LABWC_MOUSEBIND_H
 | 
			
		||||
#define LABWC_MOUSEBIND_H
 | 
			
		||||
 | 
			
		||||
#include <stdbool.h>
 | 
			
		||||
#include <wayland-util.h>
 | 
			
		||||
#include "ssd.h"
 | 
			
		||||
#include "config/keybind.h"
 | 
			
		||||
#include "common/node-type.h"
 | 
			
		||||
 | 
			
		||||
enum mouse_event {
 | 
			
		||||
	MOUSE_ACTION_NONE = 0,
 | 
			
		||||
| 
						 | 
				
			
			@ -25,7 +25,7 @@ enum direction {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
struct mousebind {
 | 
			
		||||
	enum ssd_part_type context;
 | 
			
		||||
	enum lab_node_type context;
 | 
			
		||||
 | 
			
		||||
	/* ex: BTN_LEFT, BTN_RIGHT from linux/input_event_codes.h */
 | 
			
		||||
	uint32_t button;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue