unsigned char *tmp_data = NULL;
Window drag_window;
XSetWindowAttributes attrs;
- XWindowAttributes wattrs;
Display *temp_display;
void *old_handler;
{
drag_window = *(Window *) tmp_data;
x_catch_errors (dpyinfo->display);
- XGetWindowAttributes (dpyinfo->display,
- drag_window, &wattrs);
+ /* We use ButtonPressMask since it's one of the events an
+ input-only window can never get. */
+ XSelectInput (dpyinfo->display, drag_window,
+ ButtonPressMask);
rc = !x_had_errors_p (dpyinfo->display);
x_uncatch_errors_after_check ();
current display, and the XOpenDisplay above didn't
accidentally connect to some other display. */
x_catch_errors (dpyinfo->display);
- XGetWindowAttributes (dpyinfo->display,
- drag_window, &wattrs);
+ /* We use ButtonPressMask since it's one of the events an
+ input-only window can never get. */
+ XSelectInput (dpyinfo->display, drag_window,
+ ButtonPressMask);
rc = !x_had_errors_p (dpyinfo->display);
x_uncatch_errors_after_check ();
unblock_input ();