diff options
Diffstat (limited to 'libdraw')
| -rw-r--r-- | libdraw/window.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdraw/window.c b/libdraw/window.c index 31b9912..4428431 100644 --- a/libdraw/window.c +++ b/libdraw/window.c @@ -103,7 +103,10 @@ freescreen(Screen *s) Image* allocwindow(Screen *s, Rectangle r, int ref, ulong val) { - return _allocwindow(nil, s, r, ref, val); + Image *i = _allocwindow(nil, s, r, ref, val); + if(i) + attachtowindow(i); + return i; } Image* |
