~sircmpwn/wio

End Delete when background is selected v1 PROPOSED

Fazlul Shahriar
Fazlul Shahriar: 1
 End Delete when background is selected

 1 files changed, 2 insertions(+), 4 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/wio/patches/4370/mbox | git am -3
Learn more about email & git

[PATCH] End Delete when background is selected Export this patch

Fazlul Shahriar
Selecting the background for deletion when there are no windows open
resulted in the menu stopped working.
---
 input.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/input.c b/input.c
index af708de..bc04104 100644
--- a/input.c
+++ b/input.c
@@ -320,9 +320,7 @@ static void handle_button_internal(
				view_begin_interactive(view, surface, sx, sy,
						"bottom_right_corner", INPUT_STATE_RESIZE_START);
			} else {
				server->input_state = INPUT_STATE_NONE;
				wlr_xcursor_manager_set_cursor_image(server->cursor_mgr,
						"left_ptr", server->cursor);
				view_end_interactive(server);
			}
		}
		break;
@@ -387,8 +385,8 @@ static void handle_button_internal(
					server->cursor->x, server->cursor->y, &surface, &sx, &sy);
			if (view != NULL) {
				wlr_xdg_toplevel_send_close(view->xdg_surface);
				view_end_interactive(server);
			}
			view_end_interactive(server);
		}
		break;
	default:
-- 
2.21.0
Thanks!

To git.sr.ht:~sircmpwn/wio
   c0535b2..4ea1eed  master -> master
View this thread in the archives