rootston: remove mostly unused mapped icon param

This commit is contained in:
Tony Crisci 2017-10-21 09:59:35 -04:00
parent 3c7ef3aae6
commit 6fcac087fe
3 changed files with 0 additions and 7 deletions

View File

@ -67,7 +67,6 @@ struct roots_input_event {
struct roots_drag_icon { struct roots_drag_icon {
struct wlr_surface *surface; struct wlr_surface *surface;
struct wl_list link; // roots_input::drag_icons struct wl_list link; // roots_input::drag_icons
bool mapped;
int32_t sx; int32_t sx;
int32_t sy; int32_t sy;

View File

@ -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. // toolkits to see how we should interpret the surface state here.
drag_icon->sx += drag_icon->surface->current->sx; drag_icon->sx += drag_icon->surface->current->sx;
drag_icon->sy += drag_icon->surface->current->sy; 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, static void handle_pointer_grab_begin(struct wl_listener *listener,

View File

@ -152,10 +152,6 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
struct roots_drag_icon *drag_icon = NULL; struct roots_drag_icon *drag_icon = NULL;
wl_list_for_each(drag_icon, &server->input->drag_icons, link) { 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_surface *icon = drag_icon->surface;
struct wlr_cursor *cursor = server->input->cursor; struct wlr_cursor *cursor = server->input->cursor;
double icon_x = cursor->x + drag_icon->sx; double icon_x = cursor->x + drag_icon->sx;