These two behaviors doesn't depend from firefox configuration but from window manager (KDE, Gnome, Xfce, ecc...) default settings.
Every WM has a specific configuration tool (e.g. KDE's Control Center), so you may search for it and play with the settings