mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
added new sound events
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#ifdef XDND
|
||||
#include "xdnd.h"
|
||||
#endif
|
||||
#include "wmsound.h"
|
||||
#include "WINGsP.h"
|
||||
|
||||
|
||||
@@ -914,6 +915,10 @@ appIconMouseDown(WObjDescriptor *desc, XEvent *event)
|
||||
SlideWindow(icon->core->window, x, y, aicon->x_pos,
|
||||
aicon->y_pos);
|
||||
}
|
||||
|
||||
#ifdef WMSOUND
|
||||
wSoundPlay(WMSOUND_DOCK);
|
||||
#endif
|
||||
} else {
|
||||
XMoveWindow(dpy, icon->core->window, x, y);
|
||||
aicon->x_pos = x;
|
||||
|
||||
13
src/dock.c
13
src/dock.c
@@ -53,6 +53,7 @@
|
||||
#include "workspace.h"
|
||||
#include "framewin.h"
|
||||
#include "superfluous.h"
|
||||
#include "wmsound.h"
|
||||
|
||||
|
||||
#include <proplist.h>
|
||||
@@ -3917,8 +3918,20 @@ handleIconMove(WDock *dock, WAppIcon *aicon, XEvent *event)
|
||||
*/
|
||||
if (aicon->icon->selected)
|
||||
wIconSelect(aicon->icon);
|
||||
|
||||
#ifdef WMSOUND
|
||||
wSoundPlay(WMSOUND_KABOOM);
|
||||
#endif
|
||||
DoKaboom(scr,aicon->icon->core->window, x, y);
|
||||
#ifdef WMSOUND
|
||||
} else {
|
||||
wSoundPlay(WMSOUND_UNDOCK);
|
||||
#endif
|
||||
}
|
||||
#ifdef WMSOUND
|
||||
} else {
|
||||
wSoundPlay(WMSOUND_UNDOCK);
|
||||
#endif
|
||||
}
|
||||
if (clip && clip->auto_raise_lower)
|
||||
wDockLower(clip);
|
||||
|
||||
@@ -32,14 +32,16 @@
|
||||
#define WMSOUND_UNHIDE 1008
|
||||
#define WMSOUND_APPSTART 1009
|
||||
#define WMSOUND_APPEXIT 1010
|
||||
|
||||
#define WMSOUND_DOCK 1011
|
||||
#define WMSOUND_UNDOCK 1012
|
||||
#define WMSOUND_KABOOM 1013
|
||||
|
||||
#if 0
|
||||
/* don't delete this */
|
||||
extern WWindow *wSoundServer;
|
||||
extern Atom WSStartup, WSShade, WSUnshade, WSShutdown;
|
||||
extern Atom WSMaximize, WSUnmaximize, WSIconify, WSUniconify, WSAppStart;
|
||||
extern Atom WSHide, WSUnhide, WSAppExit;
|
||||
extern Atom WSHide, WSUnhide, WSAppExit, WSDock, WSUnDock, WSKaboom;
|
||||
extern WApplication *wSoundApp;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user