I am aware this issue has been asked before, but I have tried the common solutions like changing HandleLidSwitch=Ignore and removing GNOME screensaver and installing xscreensaver with no splash.
I am trying to use my laptop with two monitors and currently have the laptop set up so the internal screen is off. This setup works fine when I leave the lid open; but the open windows stop responding when I close the lid, although the cursor still moves and some tasks can still be performed (e.g. dragging windows).
Laptop is a Dell E7240.
Version: Ubuntu 18.04.2 LTS