mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Can successfully parse the following XML and and implement the action:
<mouse>
<context name="TitleBar">
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximize"/>
</mousebind>
</context>
</mouse>
The XML parsing code for this looks A LOT different than the already
existing XML parsing code. It may have to be reworked
31 lines
620 B
C
31 lines
620 B
C
#ifndef __LABWC_RCXML_H
|
|
#define __LABWC_RCXML_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
#include <wayland-server-core.h>
|
|
|
|
#include "common/buf.h"
|
|
|
|
struct rcxml {
|
|
bool xdg_shell_server_side_deco;
|
|
int gap;
|
|
bool focus_follow_mouse;
|
|
bool raise_on_focus;
|
|
char *theme_name;
|
|
int corner_radius;
|
|
char *font_name_activewindow;
|
|
char *font_name_menuitem;
|
|
int font_size_activewindow;
|
|
int font_size_menuitem;
|
|
struct wl_list keybinds;
|
|
struct wl_list mousebinds;
|
|
};
|
|
|
|
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 */
|