8 #include <X11/Xproto.h>
10 #include "WindowMaker.h"
14 extern WPreferences wPreferences
;
16 void wSoundPlay(long event_sound
)
22 atom
= XInternAtom(dpy
, "_WINDOWMAKER_EVENT", False
);
25 if (!wPreferences
.no_sound
) {
26 Window win
= wScreenWithNumber(0)->info_window
;
28 sound_event
.xclient
.type
= ClientMessage
;
29 sound_event
.xclient
.message_type
= atom
;
30 sound_event
.xclient
.format
= 32;
31 sound_event
.xclient
.display
= dpy
;
32 sound_event
.xclient
.window
= win
;
33 sound_event
.xclient
.data
.l
[0] = event_sound
;
34 XSendEvent(dpy
, win
, False
, StructureNotifyMask
, &sound_event
);