Starting the deprecation process for --sw-opti
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
6909597ee3
commit
a7f373dec3
|
@ -1856,6 +1856,8 @@ update_refresh_rate(session_t *ps) {
|
||||||
*/
|
*/
|
||||||
static bool
|
static bool
|
||||||
swopti_init(session_t *ps) {
|
swopti_init(session_t *ps) {
|
||||||
|
log_warn("--sw-opti is going to be deprecated. If you get real benefits from using "
|
||||||
|
"this option, please open an issue to let us know.");
|
||||||
// Prepare refresh rate
|
// Prepare refresh rate
|
||||||
// Check if user provides one
|
// Check if user provides one
|
||||||
ps->refresh_rate = ps->o.refresh_rate;
|
ps->refresh_rate = ps->o.refresh_rate;
|
||||||
|
|
|
@ -874,7 +874,7 @@ void add_win(session_t *ps, xcb_window_t id, xcb_window_t prev) {
|
||||||
|
|
||||||
auto duplicated_win = find_win(ps, id);
|
auto duplicated_win = find_win(ps, id);
|
||||||
if (duplicated_win) {
|
if (duplicated_win) {
|
||||||
log_warn("Window %#010x (recorded name: %s) added multiple times", id,
|
log_debug("Window %#010x (recorded name: %s) added multiple times", id,
|
||||||
duplicated_win->name);
|
duplicated_win->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue