I have laptop with an external HDMI screen connected. I extend my desktop to it thus creating 2 logical monitors. I do the following:
I open something like VScode on Monitor 1 then drag it to Monitor 2
I close it
I relaunch it and it automatically goes to monitor 2
I drag it to Monitor 1 then close it
I relaunch it and it automatically goes to monitor 1
So the Desktop Window Manager seems to remember where a process was last launched. Is this configurable in any way? Is there any logic it uses to determine this (process, windowname, combination etc.)? I'd like to better understand this but can't find much information on it.