diff options
Diffstat (limited to 'src/remote.cc')
| -rw-r--r-- | src/remote.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/remote.cc b/src/remote.cc index f82837df..f46a0487 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -70,8 +70,8 @@ public: void write(const DisplayAtom& atom) { - write(atom.fg_color); - write(atom.bg_color); + write(atom.colors.first); + write(atom.colors.second); write(atom.attribute); write(atom.content.content()); } @@ -144,8 +144,7 @@ DisplayAtom read<DisplayAtom>(int socket) Color bg_color = read<Color>(socket); Attribute attribute = read<Attribute>(socket); DisplayAtom atom(AtomContent(read<String>(socket))); - atom.fg_color = fg_color; - atom.bg_color = bg_color; + atom.colors = { fg_color, bg_color }; atom.attribute = attribute; return atom; } |
