diff --git a/app/lib/window.ts b/app/lib/window.ts index b952c471..8e2e3307 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -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) diff --git a/tabby-core/src/configDefaults.yaml b/tabby-core/src/configDefaults.yaml index 6d83d41b..a9b6ce96 100644 --- a/tabby-core/src/configDefaults.yaml +++ b/tabby-core/src/configDefaults.yaml @@ -38,4 +38,5 @@ enableExperimentalFeatures: false pluginBlacklist: [] hacks: disableGPU: false + disableVibrancyWhileDragging: false language: null diff --git a/tabby-settings/src/components/windowSettingsTab.component.pug b/tabby-settings/src/components/windowSettingsTab.component.pug index 850ff9e1..77040985 100644 --- a/tabby-settings/src/components/windowSettingsTab.component.pug +++ b/tabby-settings/src/components/windowSettingsTab.component.pug @@ -315,3 +315,13 @@ h3.mt-4(translate) Hacks [(ngModel)]='config.store.hacks.disableGPU', (ngModelChange)='config.save(); config.requestRestart()' ) + +.form-line(*ngIf='hostApp.platform === Platform.Windows') + .header + .title Disable fluent background while dragging + .description Fluent background sometimes causes drag lag + + toggle( + [(ngModel)]='config.store.hacks.disableVibrancyWhileDragging', + (ngModelChange)='config.save(); config.requestRestart()' + )