wayland: Keep a reference to the surface we last attached

This commit is contained in:
Kristian Høgsberg
2011-02-10 22:04:26 -05:00
parent 3b205de896
commit 22b9132ae5
2 changed files with 17 additions and 34 deletions

View File

@ -128,9 +128,6 @@ shell_handle_configure(void *data, struct wl_shell *shell,
window = wl_surface_get_user_data(surface);
printf("got configure: window %p, %dx%d, edges %d\n",
window, width, height, edges);
display = gdk_window_get_display (window);
event = gdk_event_new (GDK_CONFIGURE);
@ -249,8 +246,6 @@ gdk_display_init_egl(GdkDisplay *display)
}
}
fprintf(stderr, "egl initialized\n");
return TRUE;
}