aboutsummaryrefslogtreecommitdiff
path: root/swt.c
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-04-17 17:53:22 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-04-17 17:53:22 +0200
commit4b6ef5f586004c085c6aed3b614161f6e5ab5d3f (patch)
tree3c8e890d60d53892ee6837a84cfda817b4f7d1bd /swt.c
parent540783559d919f287cbef316e36fe854ba84f529 (diff)
Remove unnecessary fprintf statements
Diffstat (limited to 'swt.c')
-rw-r--r--swt.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/swt.c b/swt.c
index a6160fd..c444397 100644
--- a/swt.c
+++ b/swt.c
@@ -651,14 +651,12 @@ pointer_motion(void *data, struct wl_pointer *pointer, uint32_t time, wl_fixed_t
client.pointer.position.y = wl_fixed_to_int(y);
if (client.pointer.buttons.button & BTN_LEFT) {
- fprintf(stderr, "y: %i\n", wintotty(client.pointer.position.y, height));
selextend(
MIN(wintotty(client.pointer.position.x, width), win.tty.width - 1),
MIN(wintotty(client.pointer.position.y, height), win.tty.height - 1),
SEL_REGULAR,
0
);
- fprintf(stderr, "HERE\n");
draw();
}
}
@@ -674,9 +672,7 @@ pointer_button(void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t
if (client.pointer.buttons.click_combo == 1 && time - client.pointer.buttons.tclick <= doubleclicktimeout) {
snap = SNAP_WORD;
- fprintf(stderr, "double\n");
} else if (client.pointer.buttons.click_combo >= 2 && time - client.pointer.buttons.tclick <= tripleclicktimeout) {
- fprintf(stderr, "tripple\n");
snap = SNAP_LINE;
} else {
client.pointer.buttons.click_combo = 0;
@@ -692,7 +688,6 @@ pointer_button(void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t
snap
);
draw();
- fprintf(stderr, "redraw: %i\n", snap);
} else if (button == BTN_LEFT && !state) {
client.pointer.buttons.button &= ~BTN_LEFT;
selextend(
@@ -804,7 +799,6 @@ run()
if (req_redraw) {
draw();
- fprintf(stderr, "redraw\n");
}
}
}