mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
New move_window function
This commit is contained in:
committed by
Carlos R. Mafra
parent
7facc79c0c
commit
42cb1291e3
15
src/dock.c
15
src/dock.c
@@ -592,18 +592,9 @@ static void colectIconsCallback(WMenu *menu, WMenuEntry *entry)
|
||||
if (!aicon->docked && wDockFindFreeSlot(clip, &x, &y)) {
|
||||
x_pos = clip->x_pos + x * ICON_SIZE;
|
||||
y_pos = clip->y_pos + y * ICON_SIZE;
|
||||
if (aicon->x_pos != x_pos || aicon->y_pos != y_pos) {
|
||||
#ifdef ANIMATIONS
|
||||
if (wPreferences.no_animations) {
|
||||
XMoveWindow(dpy, aicon->icon->core->window, x_pos, y_pos);
|
||||
} else {
|
||||
SlideWindow(aicon->icon->core->window,
|
||||
aicon->x_pos, aicon->y_pos, x_pos, y_pos);
|
||||
}
|
||||
#else
|
||||
XMoveWindow(dpy, aicon->icon->core->window, x_pos, y_pos);
|
||||
#endif /* ANIMATIONS */
|
||||
}
|
||||
if (aicon->x_pos != x_pos || aicon->y_pos != y_pos)
|
||||
move_window(aicon->icon->core->window, aicon->x_pos, aicon->y_pos, x_pos, y_pos);
|
||||
|
||||
aicon->attracted = 1;
|
||||
if (!aicon->icon->shadowed) {
|
||||
aicon->icon->shadowed = 1;
|
||||
|
||||
Reference in New Issue
Block a user