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:
committed by
Carlos R. Mafra
parent
7facc79c0c
commit
42cb1291e3
12
src/misc.c
12
src/misc.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user