Skip to content

Conversation

@VasanthBalguri
Copy link

@VasanthBalguri VasanthBalguri commented Jan 3, 2026

Pull Request Template

Description

These are my latest changes, raised for this branch for now

@robertosfield
Copy link
Collaborator

I have merged this PR as a separate wayland-latest2 branch rather than merge with the original wayland-latest branch:

https://github.com/vsg-dev/VulkanSceneGraph/tree/wayland-latest2

How close to being suitable for merging with VSG master do you considering this branch? What issues remain to be resolved?

@robertosfield
Copy link
Collaborator

Currently trying to figure out how to get wayland to build on my Kunbuntu 22.04 system:

~/dev/VulkanSceneGraph$ cmake . -DBUILD_WAYLAND=ON
-- Reading 'vsg_...' macros from /home/robert/dev/VulkanSceneGraph/cmake/vsgMacros.cmake - look there for documentation
-- Checking for module 'wayland-client'
--   Found wayland-client, version 1.22.0
-- Checking for module 'wayland-cursor'
--   Found wayland-cursor, version 1.22.0
-- Checking for module 'xkbcommon'
--   Found xkbcommon, version 1.6.0
Could not open input file: No such file or directory
Could not open input file: No such file or directory
Could not open input file: No such file or directory
Could not open input file: No such file or directory
-- The following OPTIONAL packages have been found:

 * SPIRV-Tools-opt

-- The following REQUIRED packages have been found:

 * Vulkan (required version >= 1.1.70.0)
 * Threads
 * PkgConfig

-- Configuring done (0.2s)
CMake Error at src/vsg/CMakeLists.txt:348 (add_library):
  Cannot find source file:

    platform/wayland/wayland-xdg-shell-protocol.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc


CMake Error at src/vsg/CMakeLists.txt:348 (add_library):
  No SOURCES given to target: vsg


CMake Generate step failed.  Build files cannot be regenerated correctly.
~~~ sh

Have I missed something in the merge or my setup?

@VasanthBalguri
Copy link
Author

VasanthBalguri commented Jan 5, 2026

@robertosfield my bad I missed mentioning the following package to be installed wayland-protocols.

which will install xml files for the wayland protocols, for which I configured the CMakeList.txt to generate source and header files.I will not only update the docs but also the script so that it identifies this error and gives appropriate message.

@VasanthBalguri
Copy link
Author

How close to being suitable for merging with VSG master do you considering this branch? What issues remain to be resolved?

I have tested on vsgviewer, vsgwindows and vsginput, following I noticed:

  • for multi window application when i close one window all the windows are closing and the application is exiting.
  • Resizing is laggy and not as smooth as x11 or xwayland, but it works.

other than that it doesn't block or break any of the existing vsg functionality. In fact to build it it must be explicitly specified in build script, so the rest of the build process is untouched.

@robertosfield
Copy link
Collaborator

After installing wayland-protocols I can successfully configure and build, I do get lots of warnings though...

[ 98%] Building C object src/vsg/CMakeFiles/vsg.dir/platform/wayland/xdg-decoration-client.c.o
In file included from /home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:4:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:87:51: warning: missing initializer for member ‘wl_pointer_listener::axis_value120’ [-Wmissing-field-initializers]
   87 |             .axis_discrete = pointer_axis_discrete};
      |                                                   ^
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:87:51: warning: missing initializer for member ‘wl_pointer_listener::axis_relative_direction’ [-Wmissing-field-initializers]
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::kbd_leave_event(void*, wl_keyboard*, uint32_t, wl_surface*)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:57:43: warning: unused parameter ‘data’ [-Wunused-parameter]
   57 |         static void kbd_leave_event(void* data, struct wl_keyboard* wl_keyboard, uint32_t serial, struct wl_surface* surface){};
      |                                     ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:57:69: warning: unused parameter ‘wl_keyboard’ [-Wunused-parameter]
   57 |         static void kbd_leave_event(void* data, struct wl_keyboard* wl_keyboard, uint32_t serial, struct wl_surface* surface){};
      |                                                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:57:91: warning: unused parameter ‘serial’ [-Wunused-parameter]
   57 |         static void kbd_leave_event(void* data, struct wl_keyboard* wl_keyboard, uint32_t serial, struct wl_surface* surface){};
      |                                                                                  ~~~~~~~~~^~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:57:118: warning: unused parameter ‘surface’ [-Wunused-parameter]
   57 |         static void kbd_leave_event(void* data, struct wl_keyboard* wl_keyboard, uint32_t serial, struct wl_surface* surface){};
      |                                                                                                   ~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::kbd_repeat_event(void*, wl_keyboard*, int, int)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:60:44: warning: unused parameter ‘data’ [-Wunused-parameter]
   60 |         static void kbd_repeat_event(void* data, wl_keyboard* wl_keyboard, int rate, int delay){};
      |                                      ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:60:63: warning: unused parameter ‘wl_keyboard’ [-Wunused-parameter]
   60 |         static void kbd_repeat_event(void* data, wl_keyboard* wl_keyboard, int rate, int delay){};
      |                                                  ~~~~~~~~~~~~~^~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:60:80: warning: unused parameter ‘rate’ [-Wunused-parameter]
   60 |         static void kbd_repeat_event(void* data, wl_keyboard* wl_keyboard, int rate, int delay){};
      |                                                                            ~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:60:90: warning: unused parameter ‘delay’ [-Wunused-parameter]
   60 |         static void kbd_repeat_event(void* data, wl_keyboard* wl_keyboard, int rate, int delay){};
      |                                                                                      ~~~~^~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_leave(void*, wl_pointer*, uint32_t, wl_surface*)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:70:41: warning: unused parameter ‘data’ [-Wunused-parameter]
   70 |         static void pointer_leave(void* data, struct wl_pointer* pointer, uint32_t serial, struct wl_surface* surface){};
      |                                   ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:70:66: warning: unused parameter ‘pointer’ [-Wunused-parameter]
   70 |         static void pointer_leave(void* data, struct wl_pointer* pointer, uint32_t serial, struct wl_surface* surface){};
      |                                               ~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:70:84: warning: unused parameter ‘serial’ [-Wunused-parameter]
   70 |         static void pointer_leave(void* data, struct wl_pointer* pointer, uint32_t serial, struct wl_surface* surface){};
      |                                                                           ~~~~~~~~~^~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:70:111: warning: unused parameter ‘surface’ [-Wunused-parameter]
   70 |         static void pointer_leave(void* data, struct wl_pointer* pointer, uint32_t serial, struct wl_surface* surface){};
      |                                                                                            ~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_frame(void*, wl_pointer*)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:74:41: warning: unused parameter ‘data’ [-Wunused-parameter]
   74 |         static void pointer_frame(void* data, wl_pointer* wl_pointer){};
      |                                   ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:74:59: warning: unused parameter ‘wl_pointer’ [-Wunused-parameter]
   74 |         static void pointer_frame(void* data, wl_pointer* wl_pointer){};
      |                                               ~~~~~~~~~~~~^~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_axis_source(void*, wl_pointer*, uint)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:75:47: warning: unused parameter ‘data’ [-Wunused-parameter]
   75 |         static void pointer_axis_source(void* data, wl_pointer* wl_pointer, uint axis_source){};
      |                                         ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:75:65: warning: unused parameter ‘wl_pointer’ [-Wunused-parameter]
   75 |         static void pointer_axis_source(void* data, wl_pointer* wl_pointer, uint axis_source){};
      |                                                     ~~~~~~~~~~~~^~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:75:82: warning: unused parameter ‘axis_source’ [-Wunused-parameter]
   75 |         static void pointer_axis_source(void* data, wl_pointer* wl_pointer, uint axis_source){};
      |                                                                             ~~~~~^~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_axis_stop(void*, wl_pointer*, uint, uint)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:76:45: warning: unused parameter ‘data’ [-Wunused-parameter]
   76 |         static void pointer_axis_stop(void* data, wl_pointer* wl_pointer, uint time, uint axis){};
      |                                       ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:76:63: warning: unused parameter ‘wl_pointer’ [-Wunused-parameter]
   76 |         static void pointer_axis_stop(void* data, wl_pointer* wl_pointer, uint time, uint axis){};
      |                                                   ~~~~~~~~~~~~^~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:76:80: warning: unused parameter ‘time’ [-Wunused-parameter]
   76 |         static void pointer_axis_stop(void* data, wl_pointer* wl_pointer, uint time, uint axis){};
      |                                                                           ~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:76:91: warning: unused parameter ‘axis’ [-Wunused-parameter]
   76 |         static void pointer_axis_stop(void* data, wl_pointer* wl_pointer, uint time, uint axis){};
      |                                                                                      ~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_axis_discrete(void*, wl_pointer*, uint, int)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:77:49: warning: unused parameter ‘data’ [-Wunused-parameter]
   77 |         static void pointer_axis_discrete(void* data, wl_pointer* wl_pointer, uint axis, int discrete){};
      |                                           ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:77:67: warning: unused parameter ‘wl_pointer’ [-Wunused-parameter]
   77 |         static void pointer_axis_discrete(void* data, wl_pointer* wl_pointer, uint axis, int discrete){};
      |                                                       ~~~~~~~~~~~~^~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:77:84: warning: unused parameter ‘axis’ [-Wunused-parameter]
   77 |         static void pointer_axis_discrete(void* data, wl_pointer* wl_pointer, uint axis, int discrete){};
      |                                                                               ~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:77:94: warning: unused parameter ‘discrete’ [-Wunused-parameter]
   77 |         static void pointer_axis_discrete(void* data, wl_pointer* wl_pointer, uint axis, int discrete){};
      |                                                                                          ~~~~^~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::seat_name(void*, wl_seat*, const char*)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:90:37: warning: unused parameter ‘data’ [-Wunused-parameter]
   90 |         static void seat_name(void* data, wl_seat* wl_seat, const char* name){};
      |                               ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:90:52: warning: unused parameter ‘wl_seat’ [-Wunused-parameter]
   90 |         static void seat_name(void* data, wl_seat* wl_seat, const char* name){};
      |                                           ~~~~~~~~~^~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:90:73: warning: unused parameter ‘name’ [-Wunused-parameter]
   90 |         static void seat_name(void* data, wl_seat* wl_seat, const char* name){};
      |                                                             ~~~~~~~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::WaylandRegistryState::registry_remove_object(void*, wl_registry*, uint32_t)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:96:50: warning: unused parameter ‘data’ [-Wunused-parameter]
   96 |         static void registry_remove_object(void* data, struct wl_registry* registry, uint32_t id){};
      |                                            ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:96:76: warning: unused parameter ‘registry’ [-Wunused-parameter]
   96 |         static void registry_remove_object(void* data, struct wl_registry* registry, uint32_t id){};
      |                                                        ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:96:95: warning: unused parameter ‘id’ [-Wunused-parameter]
   96 |         static void registry_remove_object(void* data, struct wl_registry* registry, uint32_t id){};
      |                                                                                      ~~~~~~~~~^~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: At global scope:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:169:69: warning: missing initializer for member ‘xdg_toplevel_listener::wm_capabilities’ [-Wmissing-field-initializers]
  169 |             .configure_bounds = xdg_toplevel_handle_configure_bounds};
      |                                                                     ^
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h: In static member function ‘static void vsgWayland::Wayland_Window::xdg_toplevel_handle_configure_bounds(void*, xdg_toplevel*, int32_t, int32_t)’:
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:165:64: warning: unused parameter ‘data’ [-Wunused-parameter]
  165 |         static void xdg_toplevel_handle_configure_bounds(void* data, struct xdg_toplevel* xdg_toplevel, int32_t width, int32_t height){};
      |                                                          ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:165:91: warning: unused parameter ‘xdg_toplevel’ [-Wunused-parameter]
  165 |         static void xdg_toplevel_handle_configure_bounds(void* data, struct xdg_toplevel* xdg_toplevel, int32_t width, int32_t height){};
      |                                                                      ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:165:113: warning: unused parameter ‘width’ [-Wunused-parameter]
  165 |         static void xdg_toplevel_handle_configure_bounds(void* data, struct xdg_toplevel* xdg_toplevel, int32_t width, int32_t height){};
      |                                                                                                         ~~~~~~~~^~~~~
/home/robert/dev/VulkanSceneGraph/include/vsg/platform/wayland/Wayland_Window.h:165:128: warning: unused parameter ‘height’ [-Wunused-parameter]
  165 |         static void xdg_toplevel_handle_configure_bounds(void* data, struct xdg_toplevel* xdg_toplevel, int32_t width, int32_t height){};
      |                                                                                                                        ~~~~~~~~^~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::WaylandRegistryState::keymapEvent(void*, wl_keyboard*, uint32_t, int32_t, uint32_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:29:65: warning: unused parameter ‘wl_keyboard’ [-Wunused-parameter]
   29 | void WaylandRegistryState::keymapEvent(void* data, wl_keyboard *wl_keyboard, uint32_t format, int32_t fd, uint32_t size)
      |                                                    ~~~~~~~~~~~~~^~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::WaylandRegistryState::kbd_enter_event(void*, wl_keyboard*, uint32_t, wl_surface*, wl_array*)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:53:49: warning: unused parameter ‘wl_keyboard’ [-Wunused-parameter]
   53 |                             struct wl_keyboard *wl_keyboard,
      |                             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:54:38: warning: unused parameter ‘serial’ [-Wunused-parameter]
   54 |                             uint32_t serial,
      |                             ~~~~~~~~~^~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::WaylandRegistryState::kbd_key_event(void*, wl_keyboard*, uint32_t, uint32_t, uint32_t, uint32_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:73:47: warning: unused parameter ‘wl_keyboard’ [-Wunused-parameter]
   73 |                           struct wl_keyboard *wl_keyboard,
      |                           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:74:36: warning: unused parameter ‘serial’ [-Wunused-parameter]
   74 |                           uint32_t serial,
      |                           ~~~~~~~~~^~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:75:36: warning: unused parameter ‘time’ [-Wunused-parameter]
   75 |                           uint32_t time,
      |                           ~~~~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::WaylandRegistryState::kbd_modifier_event(void*, wl_keyboard*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:103:52: warning: unused parameter ‘wl_keyboard’ [-Wunused-parameter]
  103 |                                struct wl_keyboard *wl_keyboard,
      |                                ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:104:41: warning: unused parameter ‘serial’ [-Wunused-parameter]
  104 |                                uint32_t serial,
      |                                ~~~~~~~~~^~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::Wayland_Window::xdg_surface_handle_configure(void*, xdg_surface*, uint32_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:115:57: warning: unused parameter ‘data’ [-Wunused-parameter]
  115 | void Wayland_Window::xdg_surface_handle_configure(void *data,
      |                                                   ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::Wayland_Window::xdg_toplevel_handle_configure(void*, xdg_toplevel*, int32_t, int32_t, wl_array*)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:121:85: warning: unused parameter ‘xdg_toplevel’ [-Wunused-parameter]
  121 | void Wayland_Window::xdg_toplevel_handle_configure(void *data, struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height, struct wl_array *states) {
      |                                                                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:121:147: warning: unused parameter ‘states’ [-Wunused-parameter]
  121 | void Wayland_Window::xdg_toplevel_handle_configure(void *data, struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height, struct wl_array *states) {
      |                                                                                                                                  ~~~~~~~~~~~~~~~~~^~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::Wayland_Window::xdg_toplevel_handle_close(void*, xdg_toplevel*)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:136:81: warning: unused parameter ‘xdg_toplevel’ [-Wunused-parameter]
  136 | void Wayland_Window::xdg_toplevel_handle_close(void *data, struct xdg_toplevel *xdg_toplevel) {
      |                                                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::Wayland_Window::xdg_wm_base_ping(void*, xdg_wm_base*, uint32_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:143:45: warning: unused parameter ‘data’ [-Wunused-parameter]
  143 | void Wayland_Window::xdg_wm_base_ping(void *data, struct xdg_wm_base *xdg_wm_base, uint32_t serial) {
      |                                       ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_enter(void*, wl_pointer*, uint32_t, wl_surface*, wl_fixed_t, wl_fixed_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:148:138: warning: unused parameter ‘surface_x’ [-Wunused-parameter]
  148 | void WaylandRegistryState::pointer_enter(void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t surface_x, wl_fixed_t surface_y) {
      |                                                                                                                               ~~~~~~~~~~~^~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:148:160: warning: unused parameter ‘surface_y’ [-Wunused-parameter]
  148 | void WaylandRegistryState::pointer_enter(void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t surface_x, wl_fixed_t surface_y) {
      |                                                                                                                                                     ~~~~~~~~~~~^~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_motion(void*, wl_pointer*, uint32_t, wl_fixed_t, wl_fixed_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:164:74: warning: unused parameter ‘pointer’ [-Wunused-parameter]
  164 | void WaylandRegistryState::pointer_motion(void *data, struct wl_pointer *pointer, uint32_t time, wl_fixed_t x, wl_fixed_t y) {
      |                                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:164:92: warning: unused parameter ‘time’ [-Wunused-parameter]
  164 | void WaylandRegistryState::pointer_motion(void *data, struct wl_pointer *pointer, uint32_t time, wl_fixed_t x, wl_fixed_t y) {
      |                                                                                   ~~~~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_button(void*, wl_pointer*, uint32_t, uint32_t, uint32_t, uint32_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:176:74: warning: unused parameter ‘pointer’ [-Wunused-parameter]
  176 | void WaylandRegistryState::pointer_button(void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state) {
      |                                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:176:92: warning: unused parameter ‘serial’ [-Wunused-parameter]
  176 | void WaylandRegistryState::pointer_button(void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state) {
      |                                                                                   ~~~~~~~~~^~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:176:109: warning: unused parameter ‘time’ [-Wunused-parameter]
  176 | void WaylandRegistryState::pointer_button(void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state) {
      |                                                                                                    ~~~~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::WaylandRegistryState::pointer_axis(void*, wl_pointer*, uint32_t, uint32_t, wl_fixed_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:218:72: warning: unused parameter ‘pointer’ [-Wunused-parameter]
  218 | void WaylandRegistryState::pointer_axis(void *data, struct wl_pointer *pointer, uint32_t time, uint32_t axis, wl_fixed_t value) {
      |                                                     ~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:218:90: warning: unused parameter ‘time’ [-Wunused-parameter]
  218 | void WaylandRegistryState::pointer_axis(void *data, struct wl_pointer *pointer, uint32_t time, uint32_t axis, wl_fixed_t value) {
      |                                                                                 ~~~~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:218:105: warning: unused parameter ‘axis’ [-Wunused-parameter]
  218 | void WaylandRegistryState::pointer_axis(void *data, struct wl_pointer *pointer, uint32_t time, uint32_t axis, wl_fixed_t value) {
      |                                                                                                ~~~~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::Wayland_Window::shell_surface_ping(void*, wl_shell_surface*, uint32_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:267:48: warning: unused parameter ‘data’ [-Wunused-parameter]
  267 | void Wayland_Window::shell_surface_ping (void *data, struct wl_shell_surface *shell_surface, uint32_t serial) {
      |                                          ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::Wayland_Window::shell_surface_configure(void*, wl_shell_surface*, uint32_t, int32_t, int32_t)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:271:83: warning: unused parameter ‘shell_surface’ [-Wunused-parameter]
  271 | void Wayland_Window::shell_surface_configure(void *data, struct wl_shell_surface *shell_surface, uint32_t edges, int32_t width, int32_t height) {
      |                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:271:107: warning: unused parameter ‘edges’ [-Wunused-parameter]
  271 | void Wayland_Window::shell_surface_configure(void *data, struct wl_shell_surface *shell_surface, uint32_t edges, int32_t width, int32_t height) {
      |                                                                                                  ~~~~~~~~~^~~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp: In static member function ‘static void vsgWayland::Wayland_Window::shell_surface_popup_done(void*, wl_shell_surface*)’:
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:284:54: warning: unused parameter ‘data’ [-Wunused-parameter]
  284 | void Wayland_Window::shell_surface_popup_done (void *data, struct wl_shell_surface *shell_surface) {
      |                                                ~~~~~~^~~~
/home/robert/dev/VulkanSceneGraph/src/vsg/platform/wayland/Wayland_Window.cpp:284:85: warning: unused parameter ‘shell_surface’ [-Wunused-parameter]
  284 | void Wayland_Window::shell_surface_popup_done (void *data, struct wl_shell_surface *shell_surface) {
      |                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
[100%] Linking CXX static library ../../lib/libvsg.a
[100%] Built target vsg

@VasanthBalguri
Copy link
Author

the callback interface has multiple paramaters, in my implementation i have not used all the parameters, most of the warnings are related to it.

@robertosfield robertosfield deleted the branch vsg-dev:VasanthBalguri-wayland-testing January 5, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants