Bug Report
Environment
- OS: Windows x64
- DSH Desktop: v0.4.0 (upgraded from v0.3.0)
Describe the bug
After upgrading to v0.4.0, the main window can no longer be moved by dragging the titlebar area with the mouse. The Alt+Space system menu also appears unavailable. In v0.3.0 the window was draggable.
Root cause analysis (local inspection)
In createWindow() the Windows build now uses:
- rame: true with itleBarStyle: hidden and itleBarOverlay: windowsTitleBarOverlay(...)
This hides the native titlebar, so there is no native drag area anymore. The web-side drag region (a fixed div with -webkit-app-region: drag, id dsh-desktop-drag-region) is only injected when process.platform === darwin (see syncNativeTheme), so on Windows no drag region is ever created. Result: nothing on the window is draggable.
Suggested fix
Inject the drag region for Windows as well, e.g. change the condition to process.platform === darwin || process.platform === win32, and adjust the region bounds to avoid the Windows titlebar overlay buttons on the right side (and no traffic-light gap needed on the left).
Expected behavior
Window can be moved by dragging the top area, consistent with v0.3.0.
Bug Report
Environment
Describe the bug
After upgrading to v0.4.0, the main window can no longer be moved by dragging the titlebar area with the mouse. The Alt+Space system menu also appears unavailable. In v0.3.0 the window was draggable.
Root cause analysis (local inspection)
In createWindow() the Windows build now uses:
This hides the native titlebar, so there is no native drag area anymore. The web-side drag region (a fixed div with -webkit-app-region: drag, id dsh-desktop-drag-region) is only injected when process.platform === darwin (see syncNativeTheme), so on Windows no drag region is ever created. Result: nothing on the window is draggable.
Suggested fix
Inject the drag region for Windows as well, e.g. change the condition to process.platform === darwin || process.platform === win32, and adjust the region bounds to avoid the Windows titlebar overlay buttons on the right side (and no traffic-light gap needed on the left).
Expected behavior
Window can be moved by dragging the top area, consistent with v0.3.0.