From 2de1603cd204793eaa82ab37dc5dea689db505be Mon Sep 17 00:00:00 2001 From: Nikita Zlobin Date: Wed, 20 May 2020 21:19:04 +0500 Subject: [PATCH] style fix --- src/x11/x.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/x11/x.c b/src/x11/x.c index d5b15d7..772ae74 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -651,13 +651,10 @@ struct window_x11 *x_win_create(void) scr_n = DefaultScreen(xctx.dpy); root = RootWindow(xctx.dpy, scr_n); - if (XMatchVisualInfo(xctx.dpy, scr_n, 32, TrueColor, &vi)) - { + if (XMatchVisualInfo(xctx.dpy, scr_n, 32, TrueColor, &vi)) { vis = vi.visual; depth = vi.depth; - } - else - { + } else { vis = DefaultVisual(xctx.dpy, scr_n); depth = DefaultDepth(xctx.dpy, scr_n); }