Skip to content

Commit

Permalink
fix(app): application flickers (#587)
Browse files Browse the repository at this point in the history
1. disable hardware acceleration
  • Loading branch information
BlackHole1 committed Apr 27, 2021
1 parent a93a6ee commit b7db699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions desktop/main-app/src/bootup/Init-env.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { app } from "electron";

export default () => {
// disable warning: "kq_init: detected broken kqueue; not using."
// link: https://github.com/tmux/tmux/issues/475
// but i don’t know where tmux is referenced. If you can find it and submit a PR, we would be very grateful.
// @ts-ignore
process.env.EVENT_NOKQUEUE = 1;

app.disableHardwareAcceleration();
};

0 comments on commit b7db699

Please sign in to comment.