How to disable auto resizing of windows when moved to the top? [duplicate]

Solution 1:

Command Line way:

by default the value for edge-tiling is set to true..

check the value with the below command gsettings get org.gnome.mutter edge-tiling

then set the value to false by below command gsettings set org.gnome.mutter edge-tiling false

Example:

$ gsettings get org.gnome.mutter edge-tiling
true
$ gsettings set org.gnome.mutter edge-tiling false
$

GUI way

Open dconf-editor, if not installed install it by below command sudo apt update && sudo apt install dconf-editor

search for "mutter" --> edge-tiling --> turn off the button.

enter image description here

Solution 2:

To disable auto-resizing of the windows, open a terminal and run:

gsettings set org.gnome.shell.overrides edge-tiling false