about summary refs log tree commit diff
path: root/src/x/connection.rs
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-11-22 03:31:51 -0700
committerIrene Knapp <ireneista@irenes.space>2026-11-22 21:40:21 -0700
commit33a0aea1fa5b12c817cc299b10f8a359d670c645 (patch)
tree1f29b867d49a6158edc679c3cc1521a77f1175d7 /src/x/connection.rs
parentefa17e7eb566d81ce821bde459e900d7398a9977 (diff)
there are now concepts of font lists and text lines
a "line" is a list of spans

much of the layout logic is moved into TextLine, but not yet all of it

Change-Id: I2edba34cd9be5a50ac6dc646cd6e2ab2369fca13
Force-Push: yes
Diffstat (limited to 'src/x/connection.rs')
-rw-r--r--src/x/connection.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/x/connection.rs b/src/x/connection.rs
index c4e879f..f37f665 100644
--- a/src/x/connection.rs
+++ b/src/x/connection.rs
@@ -7,6 +7,12 @@ use xcb::x::{ Atom, InternAtom };
 
 pub struct Connection(xcb::Connection);
 
+impl PartialEq for Connection {
+  fn eq(&self, other: &Connection) -> bool {
+    self.0.get_raw_conn() == other.0.get_raw_conn()
+  }
+}
+
 impl Connection {
   pub fn connect() -> xcb::ConnResult<(Connection, i32)> {
     let (connection, screen_index)