Skip to content

Commit

Permalink
Use getTitleBarStyle to fix drag not going to top corner when using…
Browse files Browse the repository at this point in the history
… native tabs (#239143)

Fixes #238941
  • Loading branch information
TylerLeonhardt authored Jan 29, 2025
1 parent 61a9d60 commit 99d5479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/platform/quickinput/browser/quickInputController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { StandardMouseEvent } from '../../../base/browser/mouseEvent.js';
import { IStorageService, StorageScope, StorageTarget } from '../../storage/common/storage.js';
import { IConfigurationService } from '../../configuration/common/configuration.js';
import { Platform, platform } from '../../../base/common/platform.js';
import { TitleBarSetting, TitlebarStyle } from '../../window/common/window.js';
import { getTitleBarStyle, TitlebarStyle } from '../../window/common/window.js';
import { getZoomFactor } from '../../../base/browser/browser.js';

const $ = dom.$;
Expand Down Expand Up @@ -919,7 +919,7 @@ class QuickInputDragAndDropController extends Disposable {
@IConfigurationService private readonly configurationService: IConfigurationService
) {
super();
const customTitleBar = this.configurationService.getValue<TitlebarStyle>(TitleBarSetting.TITLE_BAR_STYLE) === TitlebarStyle.CUSTOM;
const customTitleBar = getTitleBarStyle(this.configurationService) === TitlebarStyle.CUSTOM;

// Do not allow the widget to overflow or underflow window controls.
// Use CSS calculations to avoid having to force layout with `.clientWidth`
Expand Down

0 comments on commit 99d5479

Please sign in to comment.