comparison src/select-x.c @ 2625:f2bd34928a0f

[xemacs-hg @ 2005-03-01 22:43:31 by aidan] (Slightly Revised) Add configure check for XtRegisterDrawable No feedback yet from Vin on whether this works, but I want to sleep now :-) .
author aidan
date Tue, 01 Mar 2005 22:43:41 +0000
parents 48facb601f29
children cf6ef27aa9a7
comparison
equal deleted inserted replaced
2624:8174a45f637c 2625:f2bd34928a0f
525 XSendEvent (display, window, False, 0L, (XEvent *) &reply); 525 XSendEvent (display, window, False, 0L, (XEvent *) &reply);
526 XFlush (display); 526 XFlush (display);
527 } 527 }
528 else 528 else
529 { 529 {
530 #ifndef HAVE_XTREGISTERDRAWABLE
531 invalid_operation("your Xt library sucks too much to transfer this "
532 "much data!");
533 #else
530 /* Send an INCR selection. */ 534 /* Send an INCR selection. */
531 int prop_id; 535 int prop_id;
532 Widget widget = FRAME_X_TEXT_WIDGET (XFRAME(DEVICE_SELECTED_FRAME(d))); 536 Widget widget = FRAME_X_TEXT_WIDGET (XFRAME(DEVICE_SELECTED_FRAME(d)));
533 537
534 if (x_window_to_frame (d, window)) /* #### debug */ 538 if (x_window_to_frame (d, window)) /* #### debug */
592 XSelectInput (display, window, 0L); 596 XSelectInput (display, window, 0L);
593 XtUnregisterDrawable(display, (Drawable)window); 597 XtUnregisterDrawable(display, (Drawable)window);
594 } 598 }
595 XChangeProperty (display, window, reply.property, type, format, 599 XChangeProperty (display, window, reply.property, type, format,
596 PropModeReplace, data, 0); 600 PropModeReplace, data, 0);
601 #endif /* HAVE_XTREGISTERDRAWABLE */
597 } 602 }
598 } 603 }
599 604
600 605
601 606