1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 13:28:05 +01:00

xdnd drop support on dock.

This commit is contained in:
id
1999-05-17 20:21:43 +00:00
parent d6f1c81924
commit d40250728d
14 changed files with 383 additions and 165 deletions

View File

@@ -44,6 +44,9 @@
#include "framewin.h"
#include "dialog.h"
#include "client.h"
#ifdef XDND
#include "xdnd.h"
#endif
/*
* icon_file for the dock is got from the preferences file by
@@ -103,6 +106,9 @@ wAppIconCreateForDock(WScreen *scr, char *command, char *wm_instance,
dicon->icon = wIconCreateWithIconFile(scr, path, tile);
if (path)
free(path);
#ifdef XDND
wXDNDMakeAwareness(dicon->icon->core->window);
#endif
#ifdef REDUCE_APPICONS
dicon->num_apps = 0;
#endif
@@ -219,6 +225,9 @@ wAppIconCreate(WWindow *leader_win)
CWSaveUnder, &attribs);
}
#endif
#ifdef XDND
wXDNDMakeAwareness(aicon->icon->core->window);
#endif
/* will be overriden if docked */
aicon->icon->core->descriptor.handle_mousedown = appIconMouseDown;