kutte128: thanks for the answers!
For X BtF there was a .sdb file but i couldn't find any for xtension.
It works with borderless-gaming but it's quite inconvenient. But of course better than nothing.
I'm also interested in that other way.
The other way is really troublesome, but you can make it permanent. Basically, you'd look up the import table, and at some point you want to find the call to the function that makes a window, then modify it the datastructure it sends so that it has the flags you want. It's easier than it sounds, but it's also more annoying than it sounds, because you'll basically be looking for addresses, and there might be more than one thing with that address.
Another option, depending on the game, would be to look for the structure using other methods. If you've done this before with another X game, and you saw the window border, and it had a title at the top, you could probably extrapolate what the title is in x2. if you manage to find this title, it's easy from there, since either the structure you need to modify, or the function call, will point to that address. The first method makes you struggle with microsoft's EXE format, which is a nightmare. At the end of the day, you're only changing a single number in the whole file to get what you want. If you find the title that should be in the menu bar, and if i find that it's not against the EULA, i'll try to do the rest for you.
Also, you can't redistribute the file. It might be legal to distribute the address and the new value, but i'd have to recheck the EULA on the game. I'd consider to keep googling though, or do a custom search on egosoft's forums, because there seem to be alot of threads asking for oddball things like this.
Honestly, the 3rd option is the least complex, but i feel the second option is the easiest.