From 33a0aea1fa5b12c817cc299b10f8a359d670c645 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 22 Nov 2026 03:31:51 -0700 Subject: 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 --- src/x/connection.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/x/connection.rs') 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) -- cgit 1.4.1