splitwindow: Fix document selection popup on GTK >= 3.15.9 && <= 3.21.4
commit9fa27cb16ba6f82489fa91514052854774f000f6
authorColomban Wendling <ban@herbesfolles.org>
Sat, 22 Oct 2016 13:09:50 +0000 (22 15:09 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Sat, 22 Oct 2016 13:15:24 +0000 (22 15:15 +0200)
tree7670a12846937236f6e7b5ad74610c653115d53b
parent21845805c696ecb95f7f970f55e472b9b62422c8
splitwindow: Fix document selection popup on GTK >= 3.15.9 && <= 3.21.4

Works around GTK bug https://bugzilla.gnome.org/show_bug.cgi?id=769287.
Stop emission of the ::show-menu signal if it was first emitted from an
inactive toggle button, which happens only in the buggy case.
This workaround tries to not negatively affect a correctly behaving GTK
version in the unlikely case some distributions patched their version.

Fixes #1149.
plugins/splitwindow.c