1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

add xcb_util, set window name

This commit is contained in:
Wez Furlong 2018-01-22 09:02:28 -08:00
parent 3ea7bbc501
commit aef4e340e8
2 changed files with 6 additions and 0 deletions

View File

@ -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"]

View File

@ -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)?;