diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-12-01 23:08:55 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-12-01 23:08:55 +0100 |
commit | 110e3829bf79da7153143f99d301c41cd4c4c777 (patch) | |
tree | 82fbf65e3557ac2f204b74c829de73d238785df3 /src/screen.c | |
parent | f32bfb18f15244e1f2bd65064edbc6dbd167031b (diff) | |
download | ratpoison-110e3829bf79da7153143f99d301c41cd4c4c777.zip |
Fix and simplify sfrestore
Use a scratch buffer for each screen, this simplifies a lot allocations
and iterations, and allows restoring screens that contain more than one
frame.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 77ce41d..fedddfa 100644 --- a/src/screen.c +++ b/src/screen.c @@ -320,6 +320,8 @@ init_screen (rp_screen *s) /* Set the numset for the frames to our global numset. */ s->frames_numset = rp_frame_numset; + s->scratch_buffer = NULL; + /* Build the display string for each screen */ buf = sbuf_new (0); sbuf_printf (buf, "DISPLAY=%s", DisplayString (dpy)); |