mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 13:21:38 +03:00
add xcb_util, set window name
This commit is contained in:
parent
3ea7bbc501
commit
aef4e340e8
@ -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"]
|
||||
|
@ -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)?;
|
||||
|
Loading…
Reference in New Issue
Block a user