openbsd-ports/audio/xmmix/patches/patch-widget_c
naddy bfa330f604 Submitted by Dan Weeks <danimal@danimal.org>:
* md5->distinfo
* rename/update patches
* updated homepage and master_sites
* take over maintainership
2002-01-14 13:47:21 +00:00

40 lines
915 B
Plaintext

$OpenBSD: patch-widget_c,v 1.1 2002/01/14 13:47:22 naddy Exp $
--- widget.c.orig Sun Jul 14 19:49:09 1996
+++ widget.c Mon Jan 14 14:41:27 2002
@@ -973,6 +973,10 @@ post_realize_config(widgets_t *m)
delw = XmInternAtom(display, "WM_DELETE_WINDOW", False);
}
+static XtSignalId sigid;
+void deliverSIGIO() {
+ XtNoticeSignal(sigid);
+}
/*
* register_callbacks
@@ -985,7 +989,7 @@ post_realize_config(widgets_t *m)
* Nothing
*/
void
-register_callbacks(widgets_t *m)
+register_callbacks(widgets_t *m, XtAppContext app)
{
int i;
@@ -1126,6 +1130,15 @@ register_callbacks(widgets_t *m)
XmNfocusCallback,
(XtCallbackProc) mx_focuschg, (XtPointer) m->form
);
+
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+ /*
+ * Mixer SIGIO change callback
+ */
+ sigid = XtAppAddSignal(app,
+ (XtSignalCallbackProc) mx_change, (XtPointer) 0
+ );
+#endif
/*
* Install WM_DELETE_WINDOW handler