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:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user