sowm

An itsy bitsy floating window manager (220~ sloc!).
git clone git://mfeller.io/sowm.git
Log | Files | Refs | README | LICENSE

commit 42e126009fc8310a7284f47924f09eb3e213d22f
parent 72a0f32dd4aa9174de63fb05f4f95940d7137359
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Wed, 16 Oct 2019 15:46:09 +0300

sowm: void unneeded variable

Diffstat:
Msowm.c | 17++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/sowm.c b/sowm.c @@ -466,16 +466,15 @@ void ws_sel(int i) { */ void configure_request(XEvent *e) { XConfigureRequestEvent *ev = &e->xconfigurerequest; - XWindowChanges wc; - wc.x = ev->x; - wc.y = ev->y; - wc.width = ev->width; - wc.height = ev->height; - wc.sibling = ev->above; - wc.stack_mode = ev->detail; - - XConfigureWindow(d, ev->window, ev->value_mask, &wc); + XConfigureWindow(d, ev->window, ev->value_mask, &(XWindowChanges) { + .x = ev->x, + .y = ev->y, + .width = ev->width, + .height = ev->height, + .sibling = ev->above, + .stack_mode = ev->detail + }); } /*