Lines Matching defs:surface

203     edge->surface = wl_compositor_create_surface(_glfw.wl.compositor);
204 wl_surface_set_user_data(edge->surface, window);
205 wl_proxy_set_tag((struct wl_proxy*) edge->surface, &_glfw.wl.tag);
207 edge->surface, parent);
210 edge->surface);
212 wl_surface_attach(edge->surface, buffer, 0, 0);
216 wl_surface_set_opaque_region(edge->surface, region);
217 wl_surface_commit(edge->surface);
234 createFallbackEdge(window, &window->wl.fallback.top, window->wl.surface,
238 createFallbackEdge(window, &window->wl.fallback.left, window->wl.surface,
242 createFallbackEdge(window, &window->wl.fallback.right, window->wl.surface,
246 createFallbackEdge(window, &window->wl.fallback.bottom, window->wl.surface,
258 if (edge->surface)
259 wl_surface_destroy(edge->surface);
263 edge->surface = NULL;
300 // Makes the surface considered as XRGB instead of ARGB.
310 wl_surface_set_opaque_region(window->wl.surface, region);
366 wl_surface_commit(window->wl.fallback.top.surface);
371 wl_surface_commit(window->wl.fallback.left.surface);
378 wl_surface_commit(window->wl.fallback.right.surface);
385 wl_surface_commit(window->wl.fallback.bottom.surface);
416 wl_surface_set_buffer_scale(window->wl.surface, maxScale);
426 struct wl_surface* surface,
453 struct wl_surface* surface,
487 _glfw.wl.idleInhibitManager, window->wl.surface);
624 struct xdg_surface* surface,
629 xdg_surface_ack_configure(surface, serial);
771 wl_surface_commit(window->wl.surface);
783 wl_surface_commit(window->wl.surface);
807 window->wl.surface,
917 window->wl.xdg.surface = xdg_wm_base_get_xdg_surface(_glfw.wl.wmBase,
918 window->wl.surface);
919 if (!window->wl.xdg.surface)
922 "Wayland: Failed to create xdg-surface for window");
926 xdg_surface_add_listener(window->wl.xdg.surface, &xdgSurfaceListener, window);
928 window->wl.xdg.toplevel = xdg_surface_get_toplevel(window->wl.xdg.surface);
982 wl_surface_commit(window->wl.surface);
1011 if (window->wl.xdg.surface)
1012 xdg_surface_destroy(window->wl.xdg.surface);
1018 window->wl.xdg.surface = NULL;
1025 window->wl.surface = wl_compositor_create_surface(_glfw.wl.compositor);
1026 if (!window->wl.surface)
1028 _glfwInputError(GLFW_PLATFORM_ERROR, "Wayland: Failed to create window surface");
1032 wl_proxy_set_tag((struct wl_proxy*) window->wl.surface, &_glfw.wl.tag);
1033 wl_surface_add_listener(window->wl.surface,
1058 wp_viewporter_get_viewport(_glfw.wl.viewporter, window->wl.surface);
1067 window->wl.surface);
1085 struct wl_surface* surface = _glfw.wl.cursorSurface;
1114 surface,
1117 wl_surface_set_buffer_scale(surface, scale);
1118 wl_surface_attach(surface, buffer, 0, 0);
1119 wl_surface_damage(surface, 0, 0,
1121 wl_surface_commit(surface);
1367 struct wl_surface* surface,
1371 // Happens in the case we just destroyed the surface.
1372 if (!surface)
1375 if (wl_proxy_get_tag((struct wl_proxy*) surface) != &_glfw.wl.tag)
1378 _GLFWwindow* window = wl_surface_get_user_data(surface);
1384 if (surface == window->wl.surface)
1393 window->wl.fallback.focus = surface;
1400 struct wl_surface* surface)
1402 if (!surface)
1405 if (wl_proxy_get_tag((struct wl_proxy*) surface) != &_glfw.wl.tag)
1459 if (window->wl.fallback.focus == window->wl.fallback.top.surface)
1464 else if (window->wl.fallback.focus == window->wl.fallback.left.surface)
1471 else if (window->wl.fallback.focus == window->wl.fallback.right.surface)
1478 else if (window->wl.fallback.focus == window->wl.fallback.bottom.surface)
1491 struct wl_surface* surface = _glfw.wl.cursorSurface;
1517 surface,
1520 wl_surface_set_buffer_scale(surface, scale);
1521 wl_surface_attach(surface, buffer, 0, 0);
1522 wl_surface_damage(surface, 0, 0, image->width, image->height);
1523 wl_surface_commit(surface);
1558 if (window->wl.fallback.focus == window->wl.fallback.top.surface)
1565 else if (window->wl.fallback.focus == window->wl.fallback.left.surface)
1572 else if (window->wl.fallback.focus == window->wl.fallback.right.surface)
1579 else if (window->wl.fallback.focus == window->wl.fallback.bottom.surface)
1728 struct wl_surface* surface,
1731 // Happens in the case we just destroyed the surface.
1732 if (!surface)
1735 if (wl_proxy_get_tag((struct wl_proxy*) surface) != &_glfw.wl.tag)
1738 _GLFWwindow* window = wl_surface_get_user_data(surface);
1739 if (surface != window->wl.surface)
1750 struct wl_surface* surface)
1965 struct wl_surface* surface,
1988 if (surface && wl_proxy_get_tag((struct wl_proxy*) surface) == &_glfw.wl.tag)
1990 _GLFWwindow* window = wl_surface_get_user_data(surface);
1991 if (window->wl.surface == surface)
2103 xdg_activation_v1_activate(_glfw.wl.activationManager, token, window->wl.surface);
2141 window->wl.egl.window = wl_egl_window_create(window->wl.surface,
2220 if (window->wl.surface)
2221 wl_surface_destroy(window->wl.surface);
2435 // NOTE: The XDG surface and role are created here so command-line applications
2448 wl_surface_attach(window->wl.surface, NULL, 0, 0);
2449 wl_surface_commit(window->wl.surface);
2493 requester->wl.surface);
2537 // xdg-shell doesn’t give any way to request whether a surface is
2618 wl_surface_set_input_region(window->wl.surface, region);
2622 wl_surface_set_input_region(window->wl.surface, NULL);
2946 window->wl.surface,
2985 window->wl.surface,
3250 VkSurfaceKHR* surface)
3268 sci.surface = window->wl.surface;
3270 err = vkCreateWaylandSurfaceKHR(instance, &sci, allocator, surface);
3274 "Wayland: Failed to create Vulkan surface: %s",
3314 return window->wl.surface;