summaryrefslogtreecommitdiff
path: root/src/remote.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-06 20:25:23 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-06 20:28:02 +0100
commitf677d4ba32ea09aa9de2d5efd3407e842995c292 (patch)
tree6e20e677432e799b94169a161a5bded36729384b /src/remote.cc
parent594ee65949aebafef5848c458bcbb7093c204360 (diff)
Use a ColorPair in DisplayAtoms instead of separate fg/bg colors
Diffstat (limited to 'src/remote.cc')
-rw-r--r--src/remote.cc7
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;
}