提交 0976b51a 编写于 作者: R Ryan Adolf

Make framless window draggable on LInux

上级 b3db9ac7
......@@ -590,7 +590,7 @@ export class CodeWindow implements ICodeWindow {
// Theme
windowConfiguration.baseTheme = this.getBaseTheme();
windowConfiguration.backgroundColor = this.getBackgroundColor();
windowConfiguration.hiddenTitleBar = this.hasHiddenTitleBarStyle();
windowConfiguration.frameless = this.hasHiddenTitleBarStyle() && !isMacintosh;
// Perf Counters
windowConfiguration.perfEntries = exportEntries();
......
......@@ -323,7 +323,7 @@ export interface IWindowConfiguration extends ParsedArgs, IOpenFileRequest {
highContrast?: boolean;
baseTheme?: string;
backgroundColor?: string;
hiddenTitleBar?: boolean;
frameless?: boolean;
accessibilitySupport?: boolean;
perfEntries: PerformanceEntry[];
......
......@@ -23,8 +23,8 @@
const baseTheme = config.baseTheme || 'vs';
document.body.className = 'monaco-shell ' + baseTheme;
// makes the window draggable if there is no frame on Windows
if (config.execPath.endsWith('exe') && config.hiddenTitleBar) {
// makes the window draggable if there is no frame
if (config.frameless) {
document.documentElement.style.webkitAppRegion = 'drag';
document.documentElement.style.height = '100%';
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册