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

New move_window function

This commit is contained in:
Rodolfo García Peñas (kix)
2012-06-22 17:35:03 +02:00
committed by Carlos R. Mafra
parent 7facc79c0c
commit 42cb1291e3
4 changed files with 20 additions and 26 deletions

View File

@@ -247,6 +247,18 @@ static void eatExpose(void)
}
}
void move_window(Window win, int from_x, int from_y, int to_x, int to_y)
{
#ifdef ANIMATIONS
if (wPreferences.no_animations)
XMoveWindow(dpy, win, to_x, to_y);
else
SlideWindow(win, from_x, from_y, to_x, to_y);
#else
XMoveWindow(dpy, win, to_x, to_y);
#endif
}
void SlideWindow(Window win, int from_x, int from_y, int to_x, int to_y)
{
time_t time0 = time(NULL);