mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
Rename swapDock to wDockSwap and add to dock.h
We'll be calling it from defaults.c.
This commit is contained in:
committed by
Carlos R. Mafra
parent
cc839f8bc5
commit
8ed92efa3c
@@ -3032,7 +3032,7 @@ static void moveDock(WDock *dock, int new_x, int new_y)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void swapDock(WDock *dock)
|
void wDockSwap(WDock *dock)
|
||||||
{
|
{
|
||||||
WScreen *scr = dock->screen_ptr;
|
WScreen *scr = dock->screen_ptr;
|
||||||
WAppIcon *btn;
|
WAppIcon *btn;
|
||||||
@@ -3778,7 +3778,7 @@ static void handleDockMove(WDock *dock, WAppIcon *aicon, XEvent *event)
|
|||||||
if (now_on_right != dock->on_right_side)
|
if (now_on_right != dock->on_right_side)
|
||||||
{
|
{
|
||||||
dock->on_right_side = now_on_right;
|
dock->on_right_side = now_on_right;
|
||||||
swapDock(dock);
|
wDockSwap(dock);
|
||||||
wArrangeIcons(scr, False);
|
wArrangeIcons(scr, False);
|
||||||
}
|
}
|
||||||
// Also perform the vertical move
|
// Also perform the vertical move
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ void wDockTrackWindowLaunch(WDock *dock, Window window);
|
|||||||
WAppIcon *wDockFindIconForWindow(WDock *dock, Window window);
|
WAppIcon *wDockFindIconForWindow(WDock *dock, Window window);
|
||||||
void wDockDoAutoLaunch(WDock *dock, int workspace);
|
void wDockDoAutoLaunch(WDock *dock, int workspace);
|
||||||
void wDockLaunchWithState(WAppIcon *btn, WSavedState *state);
|
void wDockLaunchWithState(WAppIcon *btn, WSavedState *state);
|
||||||
|
void wDockSwap(WDock *dock);
|
||||||
|
|
||||||
#ifdef USE_DOCK_XDND
|
#ifdef USE_DOCK_XDND
|
||||||
int wDockReceiveDNDDrop(WScreen *scr, XEvent *event);
|
int wDockReceiveDNDDrop(WScreen *scr, XEvent *event);
|
||||||
|
|||||||
Reference in New Issue
Block a user