From aef4e340e829c8d4a9ca9a9b4cd3188c023606da Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 22 Jan 2018 09:02:28 -0800 Subject: [PATCH] add xcb_util, set window name --- Cargo.toml | 3 +++ src/main.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 2682af212..9da15383c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,6 @@ xcb = "0.8.1" features = ["xcb"] version = "0.3.0" +[dependencies.xcb-util] +version = "0.2.0" +features = ["image", "icccm", "ewmh", "misc"] diff --git a/src/main.rs b/src/main.rs index e419c42eb..7f21f6459 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,6 +14,8 @@ pub mod log; use failure::Error; extern crate xcb; +extern crate xcb_util; + use std::mem; use std::slice; @@ -89,6 +91,7 @@ impl<'a> TerminalWindow<'a> { ), ], ); + xcb_util::icccm::set_wm_name(&conn, window_id, "wterm"); let window_surface = TerminalWindow::make_cairo_surface(&conn, screen_num, window_id, width, height)?;