diff options
author | NRK <nrk@disroot.org> | 2023-02-10 06:35:53 +0100 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2023-03-11 13:37:04 +0100 |
commit | f2f4903de4bd3ce06c03dd66f0c9a7dda97a3550 (patch) | |
tree | e0771fca7b5fb4a88be5aee839f7a29e5696d4ee /commands.c | |
parent | 2434e83807360bfe43e3c404be12438f00a894ab (diff) | |
download | nsxiv-f2f4903de4bd3ce06c03dd66f0c9a7dda97a3550.tar.zst |
apply clang-format
minus the bogus changes
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -326,10 +326,10 @@ bool ci_drag(arg_t drag_mode) while (true) { if (drag_mode == DRAG_ABSOLUTE) { - px = MIN(MAX(0.0, x - win.w*0.1), win.w*0.8) / - (win.w*0.8) * (win.w - img.w * img.zoom); - py = MIN(MAX(0.0, y - win.h*0.1), win.h*0.8) / - (win.h*0.8) * (win.h - img.h * img.zoom); + px = MIN(MAX(0.0, x - win.w * 0.1), win.w * 0.8) / + (win.w * 0.8) * (win.w - img.w * img.zoom); + py = MIN(MAX(0.0, y - win.h * 0.1), win.h * 0.8) / + (win.h * 0.8) * (win.h - img.h * img.zoom); } else { px = img.x + x - ox; py = img.y + y - oy; @@ -343,7 +343,8 @@ bool ci_drag(arg_t drag_mode) ButtonPressMask | ButtonReleaseMask | PointerMotionMask, &e); if (e.type == ButtonPress || e.type == ButtonRelease) break; - while (XCheckTypedEvent(win.env.dpy, MotionNotify, &e)); + while (XCheckTypedEvent(win.env.dpy, MotionNotify, &e)) + ; ox = x; oy = y; x = e.xmotion.x; @@ -443,7 +444,8 @@ bool ct_drag_mark_image(arg_t _) ButtonPressMask | ButtonReleaseMask | PointerMotionMask, &e); if (e.type == ButtonPress || e.type == ButtonRelease) break; - while (XCheckTypedEvent(win.env.dpy, MotionNotify, &e)); + while (XCheckTypedEvent(win.env.dpy, MotionNotify, &e)) + ; sel = tns_translate(&tns, e.xbutton.x, e.xbutton.y); } } |