Wrong diacritics in Libreoffice 5.3.0.3 on Arch Linux

When I want to type ąćęłńóśżź (all Polish Diacritics) I get ą
ć
ę
ł
ń
ó
ś
ź
ż.

It works in every other program, but not in LibreOffice. The characters display correctly, just keyboard input doesn’t work.

% localectl
   System Locale: LANG=en_GB.UTF-8
       VC Keymap: pl2
      X11 Layout: pl

Well it turns out reverting to 5.2.5.1 (libreoffice-still) fixes everything…