From 4ea1eede5f4e31319827736cbe9867728901b4d3 Mon Sep 17 00:00:00 2001 From: Fazlul Shahriar Date: Fri, 3 May 2019 02:16:50 -0400 Subject: [PATCH] End Delete when background is selected 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.45.2