#include <X11/Xlibint.h>
#include "gdkasync.h"
#include "gdkx.h"
-#include "gdkalias.h"
+
typedef struct _ChildInfoChildState ChildInfoChildState;
typedef struct _ChildInfoState ChildInfoState;
Display *dpy;
_XAsyncHandler async;
gulong get_input_focus_req;
+ GdkDisplay *display;
GdkRoundTripCallback callback;
gpointer data;
};
win_has_wm_state ? wm_state_atom : None,
&has_wm_state,
&state.children, &state.nchildren);
- gdk_error_trap_pop ();
+ gdk_error_trap_pop_ignored ();
if (!result)
{
g_free (state.children);
{
RoundtripState *state = (RoundtripState *)data;
- state->callback (state->data);
+ state->callback (state->display, state->data, state->get_input_focus_req);
g_free (state);
True);
}
+
if (state->callback)
gdk_threads_add_idle (roundtrip_callback_idle, state);
state = g_new (RoundtripState, 1);
+ state->display = display;
state->dpy = dpy;
state->callback = callback;
state->data = data;
UnlockDisplay(dpy);
SyncHandle();
}
-
-#define __GDK_ASYNC_C__
-#include "gdkaliasdef.c"