diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-21 09:59:35 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-21 09:59:35 -0400 |
commit | 6fcac087fe1d7b7fa3cd0628a6b7818d26222678 (patch) | |
tree | 5e3b086f8ec0ae93ba62c3cc277b9181f6553495 | |
parent | 3c7ef3aae68e1a38c0ab83c22c0e064b7bde319e (diff) |
rootston: remove mostly unused mapped icon param
-rw-r--r-- | include/rootston/input.h | 1 | ||||
-rw-r--r-- | rootston/cursor.c | 2 | ||||
-rw-r--r-- | rootston/output.c | 4 |
3 files changed, 0 insertions, 7 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h index aacb3016..33750d7b 100644 --- a/include/rootston/input.h +++ b/include/rootston/input.h @@ -67,7 +67,6 @@ struct roots_input_event { struct roots_drag_icon { struct wlr_surface *surface; struct wl_list link; // roots_input::drag_icons - bool mapped; int32_t sx; int32_t sy; diff --git a/rootston/cursor.c b/rootston/cursor.c index 83581101..200a6d37 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -374,8 +374,6 @@ static void handle_drag_icon_commit(struct wl_listener *listener, void *data) { // toolkits to see how we should interpret the surface state here. drag_icon->sx += drag_icon->surface->current->sx; drag_icon->sy += drag_icon->surface->current->sy; - - drag_icon->mapped = drag_icon->surface->texture->valid; } static void handle_pointer_grab_begin(struct wl_listener *listener, diff --git a/rootston/output.c b/rootston/output.c index fce14fea..f560061d 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -152,10 +152,6 @@ static void output_frame_notify(struct wl_listener *listener, void *data) { struct roots_drag_icon *drag_icon = NULL; wl_list_for_each(drag_icon, &server->input->drag_icons, link) { - if (!drag_icon->mapped) { - continue; - } - struct wlr_surface *icon = drag_icon->surface; struct wlr_cursor *cursor = server->input->cursor; double icon_x = cursor->x + drag_icon->sx; |