File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/vs/platform/windows/electron-main Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -180,10 +180,14 @@ export abstract class BaseWindow extends Disposable implements IBaseWindow {
180
180
const cx = Math . floor ( cursorPos . x ) - x ;
181
181
const cy = Math . floor ( cursorPos . y ) - y ;
182
182
183
- if ( cx > 35 /* Cursor is beyond app icon in title bar */ ) {
184
- e . event . preventDefault ( ) ;
183
+ // TODO@bpasero TODO@deepak1556 workaround for https://github.com/microsoft/vscode/issues/250626
184
+ // where showing the custom menu seems broken on Windows
185
+ if ( isLinux ) {
186
+ if ( cx > 35 /* Cursor is beyond app icon in title bar */ ) {
187
+ e . event . preventDefault ( ) ;
185
188
186
- this . _onDidTriggerSystemContextMenu . fire ( { x : cx , y : cy } ) ;
189
+ this . _onDidTriggerSystemContextMenu . fire ( { x : cx , y : cy } ) ;
190
+ }
187
191
}
188
192
} ) ) ;
189
193
}
You can’t perform that action at this time.
0 commit comments