I use a USBC docking hub and DP to connect to external monitor.

Everytime I connect to my external monitor(Linux mint) after connecting it to windows, external display just doesn’t work. Only solution is to restart my Laptop, only then the external display works.

Any solutions? Without restarting my computer?