logo

inaban

Distrustful Wayland Compositor (inspired by XMonad and dwm)
commit: 485a8f1da1b376a3918b300956da5569ff081ce7
parent a0dae91a5fc725b18791987a24ed0923f948d9b0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  2 Dec 2020 08:41:00 +0100

Remove INABAN_CURSOR_IGNORE

Diffstat:

Minaban.c5-----
Minaban.h1-
2 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/inaban.c b/inaban.c @@ -232,10 +232,6 @@ process_cursor_motion(struct inaban_server *server, uint32_t time) wlr_xdg_toplevel_set_size(view->xdg_surface, width, height); } - else if(server->cursor_mode == INABAN_CURSOR_IGNORE) - { - /* noop */ - } else { double sx, sy; @@ -341,7 +337,6 @@ server_cursor_button(struct wl_listener *listener, void *data) server->grab_height = geo_box.height; wlr_log(WLR_DEBUG, "server->cursor_mode = resize"); break; - default: server->cursor_mode = INABAN_CURSOR_IGNORE; break; } } else if((server->cursor_mode != INABAN_CURSOR_NORMAL) && (event->state == WLR_BUTTON_RELEASED)) diff --git a/inaban.h b/inaban.h @@ -34,7 +34,6 @@ enum inaban_cursor_mode INABAN_CURSOR_NORMAL, INABAN_CURSOR_MOVE, INABAN_CURSOR_RESIZE, - INABAN_CURSOR_IGNORE, }; struct inaban_server