From: Axel Wagner Date: Tue, 9 Apr 2013 16:31:25 +0000 (+0200) Subject: Set window name X-Git-Tag: 2.5~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e69b98561b736a991f8c0d6d27ceaea621d2a271;p=i3%2Fi3lock Set window name --- diff --git a/xcb.c b/xcb.c index 6498241..5f3d298 100644 --- a/xcb.c +++ b/xcb.c @@ -9,10 +9,12 @@ */ #include #include +#include #include #include #include #include +#include #include #include #include @@ -133,6 +135,16 @@ xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, c mask, values); + char *name = "i3lock"; + xcb_change_property(conn, + XCB_PROP_MODE_REPLACE, + win, + XCB_ATOM_WM_NAME, + XCB_ATOM_STRING, + 8, + strlen(name), + name); + /* Map the window (= make it visible) */ xcb_map_window(conn, win);