mirror of
https://github.com/elementary/gala.git
synced 2024-10-26 16:01:57 +03:00
Make fullscreen to new workspace feature optional (#738)
This commit is contained in:
parent
869a035710
commit
517748bcac
@ -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">
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user