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/data.h | |
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/data.h')
-rw-r--r-- | src/data.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -197,6 +197,9 @@ struct rp_screen /* This structure can exist in a list. */ struct list_head node; + /* Used by sfrestore */ + struct sbuf *scratch_buffer; + #ifdef USE_XFT_FONT XftFont *xft_font; XftColor xft_fg_color, xft_bg_color; |