保存一下
This commit is contained in:
@@ -78,35 +78,3 @@ export class WindowFormService extends AService {
|
||||
console.log(`[WindowService] 收到事件:`, event, data);
|
||||
}
|
||||
}
|
||||
|
||||
// ==================== DesktopProcess ====================
|
||||
// class DesktopProcess implements IProcess {
|
||||
// id = "desktop";
|
||||
// private windows: IWindow[] = [];
|
||||
//
|
||||
// constructor(private sm: ServiceManager) {
|
||||
// sm.registerProcess(this);
|
||||
// }
|
||||
//
|
||||
// render() {
|
||||
// console.log("\n[Desktop 渲染]");
|
||||
// this.windows
|
||||
// .sort((a, b) => a.zIndex - b.zIndex)
|
||||
// .forEach(win => {
|
||||
// console.log(
|
||||
// `- ${win.title} (${win.id}) at (${win.x},${win.y}) size(${win.width}x${win.height}) z=${win.zIndex} ${win.minimized ? "[最小化]" : win.maximized ? "[最大化]" : ""}`
|
||||
// );
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// onMessage(event: string, data?: any) {
|
||||
// if (event.startsWith("window:")) {
|
||||
// // 更新桌面维护的窗口列表
|
||||
// const ws = this.sm.getService<WindowService>("window");
|
||||
// if (ws) {
|
||||
// this.windows = ws.getWindows();
|
||||
// this.render();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user