make vibrancy disabling optional

This commit is contained in:
Eugene Pankov
2022-03-08 20:05:58 +01:00
parent 502f72ec35
commit df77cc99d9
3 changed files with 13 additions and 2 deletions

View File

@@ -415,12 +415,12 @@ export class Window {
this.window.webContents.on('new-window', event => event.preventDefault())
ipcMain.on('window-set-disable-vibrancy-while-dragging', (_event, value) => {
this.disableVibrancyWhileDragging = value
this.disableVibrancyWhileDragging = value && this.configStore.hacks.disableVibrancyWhileDragging
})
let moveEndedTimeout: any = null
const onBoundsChange = () => {
if (!this.lastVibrancy?.enabled || !this.disableVibrancyWhileDragging || this.isFluentVibrancy) {
if (!this.lastVibrancy?.enabled || !this.disableVibrancyWhileDragging || !this.isFluentVibrancy) {
return
}
this.setVibrancy(false, undefined, false)