From b18cae7ab499a373d71823fcecc674d3513359c1 Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Tue, 17 Nov 2015 11:18:21 +0100 Subject: [PATCH] Use field designators when initializing structures --- query.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/query.c b/query.c index 18cfa74..2f7509a 100644 --- a/query.c +++ b/query.c @@ -144,19 +144,19 @@ void query_windows(coordinates_t loc, FILE *rsp) client_select_t make_client_select(void) { client_select_t sel = { - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - OPTION_NONE, - NULL + .tiled = OPTION_NONE, + .pseudo_tiled = OPTION_NONE, + .floating = OPTION_NONE, + .fullscreen = OPTION_NONE, + .locked = OPTION_NONE, + .sticky = OPTION_NONE, + .private = OPTION_NONE, + .urgent = OPTION_NONE, + .same_class = OPTION_NONE, + .automatic = OPTION_NONE, + .local = OPTION_NONE, + .focused = OPTION_NONE, + .layer = NULL }; return sel; } @@ -164,9 +164,9 @@ client_select_t make_client_select(void) desktop_select_t make_desktop_select(void) { desktop_select_t sel = { - OPTION_NONE, - OPTION_NONE, - OPTION_NONE + .occupied = OPTION_NONE, + .urgent = OPTION_NONE, + .local = OPTION_NONE }; return sel; }