mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 03:30:06 +01:00
Don't enter back-end dispatch from here.
This commit is contained in:
parent
16ba380665
commit
9106ea0d2b
1 changed files with 14 additions and 32 deletions
|
|
@ -41,21 +41,13 @@ dmxAtom (DMXScreenInfo *dmxScreen,
|
|||
|
||||
if (!atom)
|
||||
{
|
||||
xcb_get_atom_name_cookie_t cookie;
|
||||
xcb_get_atom_name_reply_t *reply = NULL;
|
||||
|
||||
cookie = xcb_get_atom_name (dmxScreen->connection, beAtom);
|
||||
|
||||
do {
|
||||
dmxDispatch ();
|
||||
|
||||
if (xcb_poll_for_reply (dmxScreen->connection,
|
||||
cookie.sequence,
|
||||
(void **) &reply,
|
||||
NULL))
|
||||
break;
|
||||
} while (dmxWaitForResponse () && dmxScreen->alive);
|
||||
xcb_get_atom_name_reply_t *reply;
|
||||
|
||||
reply =
|
||||
xcb_get_atom_name_reply (dmxScreen->connection,
|
||||
xcb_get_atom_name (dmxScreen->connection,
|
||||
beAtom),
|
||||
NULL);
|
||||
if (!reply)
|
||||
return None;
|
||||
|
||||
|
|
@ -100,29 +92,19 @@ dmxBEAtom (DMXScreenInfo *dmxScreen,
|
|||
|
||||
if (!beAtom)
|
||||
{
|
||||
xcb_intern_atom_cookie_t cookie;
|
||||
xcb_intern_atom_reply_t *reply = NULL;
|
||||
char *name;
|
||||
xcb_intern_atom_reply_t *reply;
|
||||
char *name;
|
||||
|
||||
name = NameForAtom (atom);
|
||||
if (!name)
|
||||
return None;
|
||||
|
||||
cookie = xcb_intern_atom (dmxScreen->connection,
|
||||
FALSE,
|
||||
strlen (name),
|
||||
name);
|
||||
|
||||
do {
|
||||
dmxDispatch ();
|
||||
|
||||
if (xcb_poll_for_reply (dmxScreen->connection,
|
||||
cookie.sequence,
|
||||
(void **) &reply,
|
||||
NULL))
|
||||
break;
|
||||
} while (dmxWaitForResponse () && dmxScreen->alive);
|
||||
|
||||
reply = xcb_intern_atom_reply (dmxScreen->connection,
|
||||
xcb_intern_atom (dmxScreen->connection,
|
||||
FALSE,
|
||||
strlen (name),
|
||||
name),
|
||||
NULL);
|
||||
if (!reply)
|
||||
return None;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue