Make fullscreen to new workspace feature optional (#738)

This commit is contained in:
Felix Andreas 2020-07-29 00:54:49 +02:00 committed by GitHub
parent 869a035710
commit 517748bcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -100,6 +100,11 @@
<summary>Automatically move maximized windows to a new workspace</summary>
<description></description>
</key>
<key type="b" name="move-fullscreened-workspace">
<default>true</default>
<summary>Automatically move fullscreened windows to a new workspace</summary>
<description></description>
</key>
</schema>
<schema path="/org/pantheon/desktop/gala/keybindings/" id="org.pantheon.desktop.gala.keybindings">

View File

@ -1120,7 +1120,7 @@ namespace Gala {
void handle_fullscreen_window (Meta.Window window, Meta.SizeChange which_change) {
// Only handle windows which are located on the primary monitor
if (!window.is_on_primary_monitor ())
if (!window.is_on_primary_monitor () || !behavior_settings.get_boolean ("move-fullscreened-workspace"))
return;
// Due to how this is implemented, by relying on the functionality