4.0 regression: Qt redesign: add X11 window integration

Edited by Jean-Baptiste Kempf