diff options
author | Guido Cella <guidocella91@gmail.com> | 2020-09-04 18:36:27 +0200 |
---|---|---|
committer | Guido Cella <guidocella91@gmail.com> | 2020-09-04 18:45:30 +0200 |
commit | 71572521e94be7859a467fb43730d43fae75d2b0 (patch) | |
tree | 30f53a10b9573339687513095c4a3bb3d5868cf5 /dwl.c | |
parent | 9308a90d11e1379de8759063b6495f8decc4cf03 (diff) |
improve code style
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1355,10 +1355,10 @@ motionnotify(uint32_t time) else if ((surface = xytolayersurface(&selmon->layers[ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM], cursor->x, cursor->y, &sx, &sy))) ; - else if ((surface = xytolayersurface(&selmon->layers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND], - cursor->x, cursor->y, &sx, &sy))) { // gcc complains without these braces - ; - } + else + surface = xytolayersurface(&selmon->layers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND], + cursor->x, cursor->y, &sx, &sy); + /* If there's no client surface under the cursor, set the cursor image to a * default. This is what makes the cursor image appear when you move it * off of a client or over its border. */ |