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