Lines Matching refs:shell_surface
51 handle_ping_wl_shell_surface(void *data, struct wl_shell_surface *shell_surface, in handle_ping_wl_shell_surface() argument
54 wl_shell_surface_pong(shell_surface, serial); in handle_ping_wl_shell_surface()
58 handle_configure_wl_shell_surface(void *data, struct wl_shell_surface *shell_surface, in handle_configure_wl_shell_surface() argument
97 handle_popup_done_wl_shell_surface(void *data, struct wl_shell_surface *shell_surface) in handle_popup_done_wl_shell_surface() argument
117 if (!wind->shell_surface.zxdg.initial_configure_seen) { in handle_configure_zxdg_shell_surface()
136 wind->shell_surface.zxdg.initial_configure_seen = SDL_TRUE; in handle_configure_zxdg_shell_surface()
227 if (!wind->shell_surface.xdg.initial_configure_seen) { in handle_configure_xdg_shell_surface()
246 wind->shell_surface.xdg.initial_configure_seen = SDL_TRUE; in handle_configure_xdg_shell_surface()
462 info->info.wl.shell_surface = data->shell_surface.wl; in Wayland_GetWindowWMInfo()
482 xdg_toplevel_set_fullscreen(wind->shell_surface.xdg.roleobj.toplevel, output); in SetFullscreen()
484 xdg_toplevel_unset_fullscreen(wind->shell_surface.xdg.roleobj.toplevel); in SetFullscreen()
488 zxdg_toplevel_v6_set_fullscreen(wind->shell_surface.zxdg.roleobj.toplevel, output); in SetFullscreen()
490 zxdg_toplevel_v6_unset_fullscreen(wind->shell_surface.zxdg.roleobj.toplevel); in SetFullscreen()
494 wl_shell_surface_set_fullscreen(wind->shell_surface.wl, in SetFullscreen()
498 wl_shell_surface_set_toplevel(wind->shell_surface.wl); in SetFullscreen()
594 wl_shell_surface_set_toplevel(wind->shell_surface.wl); in Wayland_RestoreWindow()
621 xdg_toplevel_set_maximized(wind->shell_surface.xdg.roleobj.toplevel); in Wayland_MaximizeWindow()
623 zxdg_toplevel_v6_set_maximized(wind->shell_surface.zxdg.roleobj.toplevel); in Wayland_MaximizeWindow()
625 wl_shell_surface_set_maximized(wind->shell_surface.wl, NULL); in Wayland_MaximizeWindow()
697 data->shell_surface.xdg.surface = xdg_wm_base_get_xdg_surface(c->shell.xdg, data->surface); in Wayland_CreateWindow()
699 …data->shell_surface.xdg.roleobj.toplevel = xdg_surface_get_toplevel(data->shell_surface.xdg.surfac… in Wayland_CreateWindow()
700 … xdg_toplevel_add_listener(data->shell_surface.xdg.roleobj.toplevel, &toplevel_listener_xdg, data); in Wayland_CreateWindow()
701 xdg_toplevel_set_app_id(data->shell_surface.xdg.roleobj.toplevel, c->classname); in Wayland_CreateWindow()
703 … data->shell_surface.zxdg.surface = zxdg_shell_v6_get_xdg_surface(c->shell.zxdg, data->surface); in Wayland_CreateWindow()
705 …data->shell_surface.zxdg.roleobj.toplevel = zxdg_surface_v6_get_toplevel(data->shell_surface.zxdg.… in Wayland_CreateWindow()
706 …zxdg_toplevel_v6_add_listener(data->shell_surface.zxdg.roleobj.toplevel, &toplevel_listener_zxdg, … in Wayland_CreateWindow()
707 zxdg_toplevel_v6_set_app_id(data->shell_surface.zxdg.roleobj.toplevel, c->classname); in Wayland_CreateWindow()
709 data->shell_surface.wl = wl_shell_get_shell_surface(c->shell.wl, data->surface); in Wayland_CreateWindow()
710 wl_shell_surface_set_class(data->shell_surface.wl, c->classname); in Wayland_CreateWindow()
736 if (data->shell_surface.xdg.surface) { in Wayland_CreateWindow()
737 xdg_surface_set_user_data(data->shell_surface.xdg.surface, data); in Wayland_CreateWindow()
738 … xdg_surface_add_listener(data->shell_surface.xdg.surface, &shell_surface_listener_xdg, data); in Wayland_CreateWindow()
741 if (data->shell_surface.zxdg.surface) { in Wayland_CreateWindow()
742 zxdg_surface_v6_set_user_data(data->shell_surface.zxdg.surface, data); in Wayland_CreateWindow()
743 …zxdg_surface_v6_add_listener(data->shell_surface.zxdg.surface, &shell_surface_listener_zxdg, data); in Wayland_CreateWindow()
746 if (data->shell_surface.wl) { in Wayland_CreateWindow()
747 wl_shell_surface_set_user_data(data->shell_surface.wl, data); in Wayland_CreateWindow()
748 wl_shell_surface_add_listener(data->shell_surface.wl, &shell_surface_listener_wl, data); in Wayland_CreateWindow()
760 if (c->decoration_manager && c->shell.xdg && data->shell_surface.xdg.surface) { in Wayland_CreateWindow()
761 …ation_manager_v1_get_toplevel_decoration(c->decoration_manager, data->shell_surface.xdg.roleobj.to… in Wayland_CreateWindow()
791 if (data->shell_surface.xdg.surface) { in Wayland_CreateWindow()
792 while (!data->shell_surface.xdg.initial_configure_seen) { in Wayland_CreateWindow()
798 if (data->shell_surface.zxdg.surface) { in Wayland_CreateWindow()
799 while (!data->shell_surface.zxdg.initial_configure_seen) { in Wayland_CreateWindow()
832 xdg_surface_ack_configure(data->shell_surface.xdg.surface, data->resize.serial); in Wayland_HandlePendingResize()
834 zxdg_surface_v6_ack_configure(data->shell_surface.zxdg.surface, data->resize.serial); in Wayland_HandlePendingResize()
873 xdg_toplevel_set_title(wind->shell_surface.xdg.roleobj.toplevel, window->title); in Wayland_SetWindowTitle()
875 zxdg_toplevel_v6_set_title(wind->shell_surface.zxdg.roleobj.toplevel, window->title); in Wayland_SetWindowTitle()
877 wl_shell_surface_set_title(wind->shell_surface.wl, window->title); in Wayland_SetWindowTitle()
906 if (wind->shell_surface.xdg.roleobj.toplevel) { in Wayland_DestroyWindow()
907 xdg_toplevel_destroy(wind->shell_surface.xdg.roleobj.toplevel); in Wayland_DestroyWindow()
909 if (wind->shell_surface.zxdg.surface) { in Wayland_DestroyWindow()
910 xdg_surface_destroy(wind->shell_surface.xdg.surface); in Wayland_DestroyWindow()
913 if (wind->shell_surface.zxdg.roleobj.toplevel) { in Wayland_DestroyWindow()
914 zxdg_toplevel_v6_destroy(wind->shell_surface.zxdg.roleobj.toplevel); in Wayland_DestroyWindow()
916 if (wind->shell_surface.zxdg.surface) { in Wayland_DestroyWindow()
917 zxdg_surface_v6_destroy(wind->shell_surface.zxdg.surface); in Wayland_DestroyWindow()
920 if (wind->shell_surface.wl) { in Wayland_DestroyWindow()
921 wl_shell_surface_destroy(wind->shell_surface.wl); in Wayland_DestroyWindow()