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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user