Skip to content

Commit

Permalink
fix: 兼容统信OS #203
Browse files Browse the repository at this point in the history
  • Loading branch information
nashaofu committed Apr 23, 2023
1 parent 38a8a30 commit 290bdc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/electron-screenshots/src/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export default class Screenshots extends Events {
if (!this.$win || this.$win?.isDestroyed?.()) {
const windowTypes: Record<string, string | undefined> = {
darwin: 'panel',
linux: 'dock',
// linux 必须设置为 undefined,否则会在部分系统上不能触发focus 事件
// https://github.com/nashaofu/screenshots/issues/203#issuecomment-1518923486
linux: undefined,
win32: 'toolbar',
};

Expand Down

0 comments on commit 290bdc2

Please sign in to comment.