aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-21 09:59:35 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-21 09:59:35 -0400
commit6fcac087fe1d7b7fa3cd0628a6b7818d26222678 (patch)
tree5e3b086f8ec0ae93ba62c3cc277b9181f6553495 /rootston
parent3c7ef3aae68e1a38c0ab83c22c0e064b7bde319e (diff)
rootston: remove mostly unused mapped icon param
Diffstat (limited to 'rootston')
-rw-r--r--rootston/cursor.c2
-rw-r--r--rootston/output.c4
2 files changed, 0 insertions, 6 deletions
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;