@@ -173,23 +173,23 @@ global_registry_handler(void* data,
173173 if (strcmp (interface, wl_compositor_interface.name ) == 0 ) {
174174 // The compositor object is used to create surfaces
175175 WaylandHelper::compositor = (wl_compositor*)wl_registry_bind (
176- registry, name, &wl_compositor_interface, version );
176+ registry, name, &wl_compositor_interface, 5 );
177177 } else if (strcmp (interface, xdg_wm_base_interface.name ) == 0 ) {
178178 // The xdg_wm_base gives access to the xdg shell, which is used to tell
179179 // the shell details about the window
180180 WaylandHelper::wm_base = (xdg_wm_base*)wl_registry_bind (
181- registry, name, &xdg_wm_base_interface, version );
181+ registry, name, &xdg_wm_base_interface, 6 );
182182 } else if (strcmp (interface, wl_seat_interface.name ) == 0 ) {
183183 // The seat interface handles input devices
184- WaylandHelper::seat = (wl_seat*) wl_registry_bind (
185- registry, name, &wl_seat_interface, version );
184+ WaylandHelper::seat =
185+ (wl_seat*) wl_registry_bind ( registry, name, &wl_seat_interface, 7 );
186186
187187 // We will also listen for the seat events
188188 wl_seat_add_listener (WaylandHelper::seat, &wl_seat_listener, nullptr );
189189 } else if (strcmp (interface, wl_output_interface.name ) == 0 ) {
190190 // Outputs are used to get the display information
191- wl_output* output = (wl_output*) wl_registry_bind (
192- registry, name, &wl_output_interface, version );
191+ wl_output* output =
192+ (wl_output*) wl_registry_bind ( registry, name, &wl_output_interface, 4 );
193193
194194 // Create a new output info object to store the information
195195 WaylandHelper::OutputInfo* info = new WaylandHelper::OutputInfo ();
@@ -200,7 +200,7 @@ global_registry_handler(void* data,
200200 // The shared memory object is used to create a buffer for the mouse
201201 // cursor
202202 WaylandHelper::shm =
203- (wl_shm*)wl_registry_bind (registry, name, &wl_shm_interface, version );
203+ (wl_shm*)wl_registry_bind (registry, name, &wl_shm_interface, 1 );
204204 }
205205}
206206
0 commit comments