1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-11-18 13:54:55 -05:00

Merge pull request #218 from ivanvig/wm_class-patch

added wm_class property
This commit is contained in:
Ingo Bürk 2019-01-15 20:59:38 +01:00 committed by GitHub
commit a395006844
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
xcb.c
View file

@ -149,6 +149,15 @@ xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, c
strlen(name), strlen(name),
name); name);
xcb_change_property(conn,
XCB_PROP_MODE_REPLACE,
win,
XCB_ATOM_WM_CLASS,
XCB_ATOM_STRING,
8,
2 * (strlen("i3lock") + 1),
"i3lock\0i3lock\0");
/* Map the window (= make it visible) */ /* Map the window (= make it visible) */
xcb_map_window(conn, win); xcb_map_window(conn, win);