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

fixed crash bug with WM_CLASS==NULL

etc
This commit is contained in:
kojima
2001-08-20 18:11:40 +00:00
parent 0e2ac9dd16
commit fa994f627e
17 changed files with 188 additions and 12 deletions

View File

@@ -446,12 +446,35 @@ DoWindowBirth(WWindow *wwin)
XFlush(dpy);
}
#else
#ifdef WINDOW_BIRTH_ZOOM2
extern void animateResize();
void DoWindowBirth(WWindow *wwin)
{
/* dummy stub */
int center_x, center_y;
int width = wwin->frame->core->width;
int height = wwin->frame->core->height;
int w = WMIN(width, 20);
int h = WMIN(height, 20);
WScreen *scr = wwin->screen_ptr;
center_x = wwin->frame_x + (width - w) / 2;
center_y = wwin->frame_y + (height - h) / 2;
animateResize(scr, center_x, center_y, 1, 1,
wwin->frame_x , wwin->frame_y, width, height,
0);
}
#else
void
DoWindowBirth(WWindow *wwin)
{
/* dummy stub */
}
#endif
#endif