Give layout enum a name: layout_t

This commit is contained in:
Diego Ongaro
2013-05-21 21:28:13 -07:00
committed by Michael Stapelberg
parent 55a338c919
commit 96575e14a0
6 changed files with 19 additions and 14 deletions

View File

@ -1547,7 +1547,7 @@ void cmd_layout(I3_CMD, char *layout_str) {
if (strcmp(layout_str, "stacking") == 0)
layout_str = "stacked";
owindow *current;
int layout;
layout_t layout;
/* default is a special case which will be handled in con_set_layout(). */
if (strcmp(layout_str, "default") == 0)
layout = L_DEFAULT;

View File

@ -1209,7 +1209,7 @@ void con_set_border_style(Con *con, int border_style, int border_width) {
* new split container before).
*
*/
void con_set_layout(Con *con, int layout) {
void con_set_layout(Con *con, layout_t layout) {
DLOG("con_set_layout(%p, %d), con->type = %d\n",
con, layout, con->type);

View File

@ -158,7 +158,7 @@ static void handle_enter_notify(xcb_enter_notify_event_t *event) {
}
/* see if the user entered the window on a certain window decoration */
int layout = (enter_child ? con->parent->layout : con->layout);
layout_t layout = (enter_child ? con->parent->layout : con->layout);
if (layout == L_DEFAULT) {
Con *child;
TAILQ_FOREACH(child, &(con->nodes_head), nodes)