clients/image: Delete old old key code

This commit is contained in:
Kristian Høgsberg 2012-01-09 18:56:37 -05:00
parent 9ca2d08fb0
commit cadd0f5cd9

View File

@ -40,7 +40,6 @@
struct image {
struct window *window;
struct display *display;
uint32_t key;
gchar *filename;
};
@ -198,7 +197,7 @@ keyboard_focus_handler(struct window *window,
}
static struct image *
image_create(struct display *display, uint32_t key, const char *filename)
image_create(struct display *display, const char *filename)
{
struct image *image;
gchar *basename;
@ -219,10 +218,6 @@ image_create(struct display *display, uint32_t key, const char *filename)
window_set_title(image->window, title);
image->display = display;
/* FIXME: Window uses key 1 for moves, need some kind of
* allocation scheme here. Or maybe just a real toolkit. */
image->key = key + 100;
window_set_user_data(image->window, image);
window_set_redraw_handler(image->window, redraw_handler);
window_set_keyboard_focus_handler(image->window,
@ -250,7 +245,7 @@ main(int argc, char *argv[])
}
for (i = 1; i < argc; i++)
image_create (d, i, argv[i]);
image_create (d, argv[i]);
display_run(d);