mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-21 21:14:18 +02:00
Preparation for 1.3.3 release
- Bump version number - Apply clang-format
This commit is contained in:
parent
a08b84b381
commit
4623681030
8 changed files with 18 additions and 17 deletions
10
keybinding.c
10
keybinding.c
|
|
@ -826,11 +826,11 @@ keybinding_move_view_to_workspace(struct cg_server *server, uint32_t ws) {
|
|||
}
|
||||
|
||||
void
|
||||
keybinding_configure_output(struct cg_server *server, struct cg_output_config *cfg) {
|
||||
struct cg_output_config *it,*tmp;
|
||||
wl_list_for_each_safe(it, tmp, &server->output_config,
|
||||
link) {
|
||||
if(strcmp(cfg->output_name,it->output_name) == 0) {
|
||||
keybinding_configure_output(struct cg_server *server,
|
||||
struct cg_output_config *cfg) {
|
||||
struct cg_output_config *it, *tmp;
|
||||
wl_list_for_each_safe(it, tmp, &server->output_config, link) {
|
||||
if(strcmp(cfg->output_name, it->output_name) == 0) {
|
||||
wl_list_remove(&it->link);
|
||||
free(it->output_name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,10 +18,11 @@ enum keybinding_action {
|
|||
KEYBINDING_SPLIT_HORIZONTAL,
|
||||
KEYBINDING_CHANGE_TTY, // data.u is the desired tty
|
||||
KEYBINDING_LAYOUT_FULLSCREEN,
|
||||
KEYBINDING_CYCLE_VIEWS, // data.b is 0 if forward, 1 if reverse
|
||||
KEYBINDING_CYCLE_TILES, // data.b is 0 if forward, 1 if reverse
|
||||
KEYBINDING_CYCLE_OUTPUT, // data.b is 0 if forward, 1 if reverse
|
||||
KEYBINDING_CONFIGURE_OUTPUT, // data.o_cfg is the desired output configuration
|
||||
KEYBINDING_CYCLE_VIEWS, // data.b is 0 if forward, 1 if reverse
|
||||
KEYBINDING_CYCLE_TILES, // data.b is 0 if forward, 1 if reverse
|
||||
KEYBINDING_CYCLE_OUTPUT, // data.b is 0 if forward, 1 if reverse
|
||||
KEYBINDING_CONFIGURE_OUTPUT, // data.o_cfg is the desired output
|
||||
// configuration
|
||||
KEYBINDING_QUIT,
|
||||
KEYBINDING_NOOP,
|
||||
KEYBINDING_SWITCH_WORKSPACE, // data.u is the desired workspace
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
% CAGEBREAK-CONFIG(1) Version 1.3.2 | Cagebreak Manual
|
||||
% CAGEBREAK-CONFIG(1) Version 1.3.3 | Cagebreak Manual
|
||||
|
||||
# NAME
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
% CAGEBREAK(1) Version 1.3.2 | Cagebreak Manual
|
||||
% CAGEBREAK(1) Version 1.3.3 | Cagebreak Manual
|
||||
|
||||
# NAME
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
project('cagebreak', 'c',
|
||||
version: '1.3.2',
|
||||
version: '1.3.3',
|
||||
license: 'MIT',
|
||||
default_options: [
|
||||
'c_std=c11',
|
||||
|
|
|
|||
2
parse.c
2
parse.c
|
|
@ -537,7 +537,7 @@ parse_command(struct cg_server *server, struct keybinding *keybinding,
|
|||
}
|
||||
} else if(strcmp(action, "output") == 0) {
|
||||
keybinding->action = KEYBINDING_CONFIGURE_OUTPUT;
|
||||
keybinding->data.o_cfg=parse_output_config(&saveptr,errstr);
|
||||
keybinding->data.o_cfg = parse_output_config(&saveptr, errstr);
|
||||
if(keybinding->data.o_cfg == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
4
view.c
4
view.c
|
|
@ -56,7 +56,7 @@ view_child_handle_commit(struct wl_listener *listener, void *_data) {
|
|||
struct cg_view_child *child = wl_container_of(listener, child, commit);
|
||||
int x, y;
|
||||
child->get_coords(child, &x, &y);
|
||||
view_damage_child(child, x+child->view->ox, y+child->view->oy, false);
|
||||
view_damage_child(child, x + child->view->ox, y + child->view->oy, false);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -120,7 +120,7 @@ subsurface_handle_destroy(struct wl_listener *listener, void *_data) {
|
|||
static void
|
||||
subsurface_get_coords(struct cg_view_child *child, int *x, int *y) {
|
||||
struct wlr_surface *surface = child->wlr_surface;
|
||||
*x=*y=0;
|
||||
*x = *y = 0;
|
||||
|
||||
if(child->parent && child->parent->get_coords) {
|
||||
int sx, sy;
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@ xdg_popup_destroy(struct cg_view_child *child) {
|
|||
|
||||
int x, y;
|
||||
child->get_coords(child, &x, &y);
|
||||
view_damage_child(child, x+child->view->ox, y+child->view->oy, true);
|
||||
struct cg_xdg_popup *popup = (struct cg_xdg_popup *)child;
|
||||
view_damage_child(child, x + child->view->ox, y + child->view->oy, true);
|
||||
struct cg_xdg_popup *popup = (struct cg_xdg_popup *)child;
|
||||
wl_list_remove(&popup->destroy.link);
|
||||
wl_list_remove(&popup->map.link);
|
||||
wl_list_remove(&popup->unmap.link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue