Lines Matching defs:x11_wrapper
71 pa_x11_wrapper *x11_wrapper;
79 int screen = DefaultScreen(pa_x11_wrapper_get_display(u->x11_wrapper));
88 pa_x11_set_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SERVER", s);
91 pa_x11_del_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SERVER");
102 screen = DefaultScreen(pa_x11_wrapper_get_display(u->x11_wrapper));
103 if (!pa_x11_get_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_ID", t, sizeof(t)) || !pa_streq(t, u->id)) {
117 pa_assert(u->x11_wrapper == w);
124 if (u->x11_wrapper)
125 pa_x11_wrapper_unref(u->x11_wrapper);
128 u->x11_wrapper = NULL;
155 u->x11_wrapper = NULL;
169 if (!(u->x11_wrapper = pa_x11_wrapper_get(m->core, pa_modargs_get_value(ma, "display", NULL))))
172 screen = DefaultScreen(pa_x11_wrapper_get_display(u->x11_wrapper));
177 pa_x11_set_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_ID", u->id);
180 pa_x11_set_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SESSION_ID", sid);
187 pa_x11_set_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SOURCE", t);
190 pa_x11_set_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SINK", t);
192 pa_x11_set_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_COOKIE",
195 u->x11_client = pa_x11_client_new(u->x11_wrapper, NULL, x11_kill_cb, u);
221 if (u->x11_wrapper) {
223 int screen = DefaultScreen(pa_x11_wrapper_get_display(u->x11_wrapper));
226 if (!pa_x11_get_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_ID", t, sizeof(t)) || !pa_streq(t, u->id))
229 pa_x11_del_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_ID");
230 pa_x11_del_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SERVER");
231 pa_x11_del_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SINK");
232 pa_x11_del_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SOURCE");
233 pa_x11_del_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_COOKIE");
234 pa_x11_del_prop(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper), screen, "PULSE_SESSION_ID");
235 xcb_flush(pa_x11_wrapper_get_xcb_connection(u->x11_wrapper));
238 pa_x11_wrapper_unref(u->x11_wrapper);