mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
Fix coding style
This commit is contained in:
parent
538c9b1bf8
commit
e8e4aa0a7c
16 changed files with 28 additions and 22 deletions
|
|
@ -7,9 +7,11 @@ struct server;
|
|||
struct wl_list;
|
||||
|
||||
struct action {
|
||||
struct wl_list link; /* struct keybinding.actions,
|
||||
* struct mousebinding.actions,
|
||||
* struct menuitem.actions */
|
||||
struct wl_list link; /*
|
||||
* struct keybinding.actions
|
||||
* struct mousebinding.actions
|
||||
* struct menuitem.actions
|
||||
*/
|
||||
|
||||
uint32_t type; /* enum action_type */
|
||||
struct wl_list args; /* struct action_arg.link */
|
||||
|
|
|
|||
|
|
@ -9,8 +9,10 @@ struct wl_list;
|
|||
|
||||
/* Double use: as config in config/rcxml.c and as instance in workspaces.c */
|
||||
struct workspace {
|
||||
struct wl_list link; /* struct server.workspaces
|
||||
struct rcxml.workspace_config.workspaces */
|
||||
struct wl_list link; /*
|
||||
* struct server.workspaces
|
||||
* struct rcxml.workspace_config.workspaces
|
||||
*/
|
||||
struct server *server;
|
||||
|
||||
char *name;
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ restore_nofile_limit(void)
|
|||
}
|
||||
|
||||
if (setrlimit(RLIMIT_NOFILE, &original_nofile_rlimit) != 0) {
|
||||
wlr_log_errno(WLR_ERROR, "Failed to restore max open files limit: setrlimit(NOFILE) failed");
|
||||
wlr_log_errno(WLR_ERROR,
|
||||
"Failed to restore max open files limit: setrlimit(NOFILE) failed");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,8 @@ draw_cairo_border(cairo_t *cairo, double width, double height, double line_width
|
|||
|
||||
double x, y, w, h;
|
||||
/* The anchor point of a line is in the center */
|
||||
x = y = line_width / 2;
|
||||
x = line_width / 2;
|
||||
y = x;
|
||||
w = width - line_width;
|
||||
h = height - line_width;
|
||||
cairo_set_line_width(cairo, line_width);
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ scaled_font_buffer_create(struct wlr_scene_tree *parent)
|
|||
{
|
||||
assert(parent);
|
||||
struct scaled_font_buffer *self = znew(*self);
|
||||
struct scaled_scene_buffer *scaled_buffer
|
||||
= scaled_scene_buffer_create(parent, &impl);
|
||||
struct scaled_scene_buffer *scaled_buffer =
|
||||
scaled_scene_buffer_create(parent, &impl);
|
||||
if (!scaled_buffer) {
|
||||
free(self);
|
||||
return NULL;
|
||||
|
|
|
|||
|
|
@ -15,10 +15,10 @@
|
|||
#include "resistance.h"
|
||||
#include "ssd.h"
|
||||
|
||||
static const char **cursor_names = NULL;
|
||||
static const char * const *cursor_names = NULL;
|
||||
|
||||
/* Usual cursor names */
|
||||
static const char *cursors_xdg[] = {
|
||||
static const char * const cursors_xdg[] = {
|
||||
NULL,
|
||||
"default",
|
||||
"grab",
|
||||
|
|
@ -33,7 +33,7 @@ static const char *cursors_xdg[] = {
|
|||
};
|
||||
|
||||
/* XCursor fallbacks */
|
||||
static const char *cursors_x11[] = {
|
||||
static const char * const cursors_x11[] = {
|
||||
NULL,
|
||||
"left_ptr",
|
||||
"grabbing",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue