mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1630732 - Disable moving windows to a different space when the 'screensHaveSeparateSpaces' configuration option is set in Mission Control on Mac OSX. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D72169
This commit is contained in:
parent
303fb49784
commit
95f38c631d
@ -1320,6 +1320,12 @@ void nsCocoaWindow::MoveToWorkspace(const nsAString& workspaceIDStr) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ([NSScreen screensHaveSeparateSpaces] && [[NSScreen screens] count] > 1) {
|
||||
// We don't support moving to a workspace when the user has this option
|
||||
// enabled in Mission Control.
|
||||
return;
|
||||
}
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
int32_t workspaceID = workspaceIDStr.ToInteger(&rv);
|
||||
if (NS_FAILED(rv)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user