So the question is now: Why is device-type returning 'mswindows
for X
frames..
It isn't.
(device-type (frame-device)) ==> x
(featurep 'mswindows) ==> t
The code is using the later test. If the code was testing that
(eq 'mswindows (device-type locale)) or some such, then it might work...