Did you already try withdconf-editor ?
Go to this path /org/gnome/settings-daemon/plugins/xsetting/overrides. You can change the value to this {'Gtk/ShellShowsAppMenu': <0>, 'Gtk/DecorationLayout': <'close,minimize,maximize:menu:'>}. Also change the setting on gnome-tweaks for consistency