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

Make framless window draggable on LInux

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