It's GDK's bug. https://bugs.freedesktop.org/show_bug.cgi?id=1143 https://bugs.freedesktop.org/show_bug.cgi?id=2435