summaryrefslogtreecommitdiff
path: root/src/data.h
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-12-01 23:08:55 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-12-01 23:08:55 +0100
commit110e3829bf79da7153143f99d301c41cd4c4c777 (patch)
tree82fbf65e3557ac2f204b74c829de73d238785df3 /src/data.h
parentf32bfb18f15244e1f2bd65064edbc6dbd167031b (diff)
downloadratpoison-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index 8019ec8..eb662ce 100644
--- a/src/data.h
+++ b/src/data.h
@@ -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;