mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			53 lines
		
	
	
	
		
			959 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
	
		
			959 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0-only */
 | 
						|
#ifndef __LABWC_RCXML_H
 | 
						|
#define __LABWC_RCXML_H
 | 
						|
 | 
						|
#include <stdbool.h>
 | 
						|
#include <stdio.h>
 | 
						|
#include <wayland-server-core.h>
 | 
						|
 | 
						|
#include "common/buf.h"
 | 
						|
#include "config/libinput.h"
 | 
						|
 | 
						|
struct rcxml {
 | 
						|
 | 
						|
	/* core */
 | 
						|
	bool xdg_shell_server_side_deco;
 | 
						|
	int gap;
 | 
						|
	bool adaptive_sync;
 | 
						|
 | 
						|
	/* focus */
 | 
						|
	bool focus_follow_mouse;
 | 
						|
	bool raise_on_focus;
 | 
						|
 | 
						|
	/* theme */
 | 
						|
	char *theme_name;
 | 
						|
	int corner_radius;
 | 
						|
	char *font_name_activewindow;
 | 
						|
	char *font_name_menuitem;
 | 
						|
	int font_size_activewindow;
 | 
						|
	int font_size_menuitem;
 | 
						|
 | 
						|
	/* keyboard */
 | 
						|
	int repeat_rate;
 | 
						|
	int repeat_delay;
 | 
						|
	struct wl_list keybinds;
 | 
						|
 | 
						|
	/* mouse */
 | 
						|
	long doubleclick_time; /* in ms */
 | 
						|
	struct wl_list mousebinds;
 | 
						|
 | 
						|
	/* libinput */
 | 
						|
	struct wl_list libinput_categories;
 | 
						|
 | 
						|
	/* resistance */
 | 
						|
	int screen_edge_strength;
 | 
						|
};
 | 
						|
 | 
						|
extern struct rcxml rc;
 | 
						|
 | 
						|
void rcxml_parse_xml(struct buf *b);
 | 
						|
void rcxml_read(const char *filename);
 | 
						|
void rcxml_finish(void);
 | 
						|
 | 
						|
#endif /* __LABWC_RCXML_H */
 |