Mac is stuck in some kind of automatic layout windowing mode

My mac has suddenly stopped letting me freely move around my application windows around the screen, and its just allowing them to be shown in a grid view. If i try resizing windows, they just get automatically resized back. I've tried searching for some kind of setting in accessability, but i have not found out how to turn this off, its driving me mad.

Attached are screenshots of how it forces the layout of windows present

enter image description here

It is not possible to resize any of the windows here, and there is always a blue rectangle around the window with focus

enter image description here

with 2 windows showing, they are forced into this layout


Clearly your computer has a window manager installed on it.

That one in particular might be chunkwm (the blue border around your selected window reminds me of my time using chunkwm, but I assume all window managers provide some feature like that). chunkwm is also very popular, so maybe it's what's ended up installed on your computer.

Try stopping it, maybe one of these commands will work:

brew services stop chunkwm
launchctl unload -w ~/Library/LaunchAgents/com.koekeishiya.chunkwm.plist
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.chunkwm.plist

if none are found try searching for it

launchctl dumpstate | grep chunkwm

if chunkwm still isn't found, then the window manager you have isn't chunkwm.

Just look up a list of window managers online and search for each one in turn on your computer. Edit a good starting point would be yabai, the successor to chunkwm.

It might also be possible to hunt through

launchctl dumpstate | grep '=> true' 

for it.