strlen(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) */
xcb_map_window(conn, win);
break;
}
+ /* In case the grab failed, we still need to free the reply */
+ free(preply);
+
/* Make this quite a bit slower */
usleep(50);
break;
}
+ /* In case the grab failed, we still need to free the reply */
+ free(kreply);
+
/* Make this quite a bit slower */
usleep(50);