<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,all:</div><div><br></div><div style="line-height: 23.8px;">static void</div><div style="line-height: 23.8px;">registry_handle_global(void *data, struct wl_registry *registry,</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">           </span>       uint32_t name, const char <span style="color: rgb(255, 0, 0);">*</span><span style="color: rgb(255, 0, 0);">interface</span>, uint32_t version)</div><div style="line-height: 23.8px;">{</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">  </span>struct display *d = data;</div><div style="line-height: 23.8px;"><br></div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">   </span>if (strcmp(interface, "wl_compositor") == 0) {</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">            </span>d->compositor =</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                  </span>wl_registry_bind(registry, name,</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                                    </span> &wl_compositor_interface, 1);</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">     </span>} else if (strcmp(interface, "xdg_shell") == 0) {</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">         </span>d->shell = wl_registry_bind(registry, name,</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                                      </span>    &xdg_shell_interface, 1);</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">            </span>xdg_shell_add_listener(d->shell, &xdg_shell_listener, d);</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">            </span>xdg_shell_use_unstable_version(d->shell, XDG_VERSION);</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">   </span>} else if (strcmp(interface, "wl_seat") == 0) {</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">           </span>d->seat = wl_registry_bind(registry, name,</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                                       </span>   &wl_seat_interface, 1);</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">            </span>wl_seat_add_listener(d->seat, &seat_listener, d);</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">    </span>} else if (strcmp(interface, "wl_shm") == 0) {</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">            </span>d->shm = wl_registry_bind(registry, name,</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                                        </span>  &wl_shm_interface, 1);</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">              </span>d->cursor_theme = wl_cursor_theme_load(NULL, 32, d->shm);</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">             </span>if (!d->cursor_theme) {</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                  </span>fprintf(stderr, "unable to load default theme\n");</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                        </span>return;</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">             </span>}</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">           </span>d->default_cursor =</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                      </span>wl_cursor_theme_get_cursor(d->cursor_theme, "left_ptr");</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">               </span>if (!d->default_cursor) {</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                        </span>fprintf(stderr, "unable to load default left pointer\n");</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">                 </span>// TODO: abort ?</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">            </span>}</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">   </span>} else if (strcmp(interface, "ivi_application") == 0) {</div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">           </span><span style="color: rgb(255, 0, 0);">d->ivi_application =</span></div><div style="line-height: 23.8px;"><span style="color: rgb(255, 0, 0);"><span class="Apple-tab-span" style="white-space: pre;">                      </span>wl_registry_bind(registry, name,</span></div><div style="line-height: 23.8px;"><span style="color: rgb(255, 0, 0);"><span class="Apple-tab-span" style="white-space: pre;">                                  </span> &ivi_application_interface, 1);</span></div><div style="line-height: 23.8px;"><span class="Apple-tab-span" style="white-space: pre;">      </span>}</div><div style="line-height: 23.8px;">}</div><div>    </div><div>    In sample code simple-egl, when I registered global handle, the <span style="color: rgb(255, 0, 0);">d<span style="line-height: 23.8px;">->ivi_application</span></span><span style="line-height: 23.8px; color: rgb(0, 0, 0);"> </span><span style="line-height: 23.8px;">was alwasys NULL.</span></div><div><span style="line-height: 1.7;">    So I printed some log to see the value of '</span><span style="line-height: 1.7; color: rgb(255, 0, 0);">interface</span><span style="line-height: 1.7;">'.</span><span style="line-height: 1.7;">   </span></div><div><div>wl_compositor </div><div>wl_subcompositor </div><div>wl_scaler </div><div>presentation </div><div>wl_data_device_manager </div><div>wl_shm </div><div>wl_viv </div><div>wl_viv </div><div>wl_output </div><div>wl_input_panel </div><div>wl_text_input_manager </div><div>wl_shell </div><div>xdg_shell </div><div>desktop_shell </div><div>workspace_manager </div><div>screenshooter </div></div><div><br></div><div>I found there is no <span style="line-height: 23.8px;">ivi_application. I don't know the reason for this.</span></div><div>Does anyone have the same problem as me£¿</div><div><br></div><div><br></div><div>Best regards,</div><div>Anthenony</div></div><br><br><span title="neteasefooter"><p> </p></span>