session: remove debug prints from wl_prop_get_wm_class
This commit is contained in:
parent
a117a9e437
commit
8a9e400fd5
|
|
@ -7065,18 +7065,13 @@ wl_prop_get_wm_class(WNativeWindow win,
|
|||
/* Phase 41: use XDG app_id / Phase 17: use XWayland WM_CLASS. */
|
||||
struct wl_toplevel_view *v = wl_find_view_by_id(win);
|
||||
if (v && v->xw_surface) {
|
||||
wwarning("wl_prop_get_wm_class: XWayland class=%s instance=%s",
|
||||
v->xw_surface->class ? v->xw_surface->class : "(null)",
|
||||
v->xw_surface->instance ? v->xw_surface->instance : "(null)");
|
||||
*wm_class = strdup(v->xw_surface->class ? v->xw_surface->class : "x11-client");
|
||||
*wm_instance = strdup(v->xw_surface->instance ? v->xw_surface->instance : "x11-client");
|
||||
return 1;
|
||||
}
|
||||
wwarning("wl_prop_get_wm_class: NOT FOUND (v=%p) win=0x%lx", (void*)v, (unsigned long)win);
|
||||
const char *app_id = (v && v->xdg_surface && v->xdg_surface->toplevel &&
|
||||
v->xdg_surface->toplevel->app_id)
|
||||
? v->xdg_surface->toplevel->app_id : "wayland-client";
|
||||
wwarning("wl_prop_get_wm_class: using app_id=%s", app_id);
|
||||
*wm_class = strdup(app_id);
|
||||
*wm_instance = strdup(app_id);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue