honestly if anything, the OOM killer should check with the desktop environment or window manager to see if the program consuming the most RAM is actually currently being used (or at least actively being shown on any of the screens) and consider closing background programs instead if that's the case, as long as killing some memory-intensive background programs will free up enough RAM.