mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-29 11:35:47 +01:00
Update for 0.51.2-pre2
This commit is contained in:
@@ -65,10 +65,10 @@ WMAppAddWindow(WMAppContext *app, Window window)
|
||||
if (!win)
|
||||
return False;
|
||||
|
||||
free(app->windows);
|
||||
|
||||
memcpy(win, app->windows, sizeof(Window)*app->win_count);
|
||||
|
||||
free(app->windows);
|
||||
|
||||
win[app->win_count] = window;
|
||||
app->windows = win;
|
||||
app->win_count++;
|
||||
|
||||
Reference in New Issue
Block a user