Make comment style more consistent

This commit is contained in:
Orestis Floros
2018-04-21 13:02:14 +03:00
parent a65914f338
commit e4d2b38552
21 changed files with 39 additions and 34 deletions

View File

@ -330,7 +330,7 @@ void cmd_move_con_to_workspace(I3_CMD, const char *which) {
ysuccess(true);
}
/**
/*
* Implementation of 'move [window|container] [to] workspace back_and_forth'.
*
*/

View File

@ -312,7 +312,7 @@ bool con_has_managed_window(Con *con) {
return (con != NULL && con->window != NULL && con->window->id != XCB_WINDOW_NONE && con_get_workspace(con) != NULL);
}
/**
/*
* Returns true if this node has regular or floating children.
*
*/
@ -526,7 +526,7 @@ Con *con_get_fullscreen_covering_ws(Con *ws) {
return fs;
}
/**
/*
* Returns true if the container is internal, such as __i3_scratch
*
*/
@ -896,7 +896,7 @@ int con_num_children(Con *con) {
return children;
}
/**
/*
* Returns the number of visible non-floating children of this container.
* For example, if the container contains a hsplit which has two children,
* this will return 2 instead of 1.

View File

@ -18,7 +18,7 @@ Config config;
struct modes_head modes;
struct barconfig_head barconfigs = TAILQ_HEAD_INITIALIZER(barconfigs);
/**
/*
* Ungrabs all keys, to be called before re-grabbing the keys because of a
* mapping_notify event or a configuration file reload
*

View File

@ -59,7 +59,7 @@ static void floating_set_hint_atom(Con *con, bool floating) {
xcb_flush(conn);
}
/**
/*
* Called when a floating window is created or resized.
* This function resizes the window if its size is higher or lower than the
* configured maximum/minimum size, respectively.

View File

@ -1580,7 +1580,7 @@ void ipc_send_workspace_event(const char *change, Con *current, Con *old) {
y(free);
}
/**
/*
* For the window events we send, along the usual "change" field,
* also the window container, in "container".
*/
@ -1610,7 +1610,7 @@ void ipc_send_window_event(const char *property, Con *con) {
setlocale(LC_NUMERIC, "");
}
/**
/*
* For the barconfig update events, we send the serialized barconfig.
*/
void ipc_send_barconfig_update_event(Barconfig *barconfig) {

View File

@ -32,7 +32,7 @@
* RLIM_INFINITY for i3 debugging versions. */
struct rlimit original_rlimit_core;
/** The number of file descriptors passed via socket activation. */
/* The number of file descriptors passed via socket activation. */
int listen_fds;
/* We keep the xcb_prepare watcher around to be able to enable and disable it

View File

@ -95,7 +95,7 @@ static int _prune_startup_sequences(void) {
return active_sequences;
}
/**
/*
* Deletes a startup sequence, ignoring whether its timeout has elapsed.
* Useful when e.g. a window is moved between workspaces and its children
* shouldn't spawn on the original workspace.
@ -257,7 +257,7 @@ void startup_monitor_event(SnMonitorEvent *event, void *userdata) {
}
}
/**
/*
* Renames workspaces that are mentioned in the startup sequences.
*
*/
@ -273,7 +273,7 @@ void startup_sequence_rename_workspace(const char *old_name, const char *new_nam
}
}
/**
/*
* Gets the stored startup sequence for the _NET_STARTUP_ID of a given window.
*
*/

View File

@ -914,7 +914,7 @@ Con *workspace_attach_to(Con *ws) {
return new;
}
/**
/*
* Creates a new container and re-parents all of children from the given
* workspace into it.
*
@ -949,7 +949,7 @@ Con *workspace_encapsulate(Con *ws) {
return new;
}
/**
/*
* Move the given workspace to the specified output.
* This returns true if and only if moving the workspace was successful.
*/

View File

@ -42,7 +42,7 @@ typedef struct con_state {
bool child_mapped;
bool is_hidden;
/** The con for which this state is. */
/* The con for which this state is. */
Con *con;
/* For reparenting, we have a flag (need_reparent) and the X ID of the old