<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=17930457" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GFdevelop">@GFdevelop</a> thanks for the info. For me, when there's no selection and I right-click on an item, it first selects the item and the menu pops up as expected. Perhaps it's a difference in GTK+ versions (GTK 2.24.32 here and it looks like you might have GTK+3).</p>
<p>Anyway, if the crux of this PR fixes some GTK+ versions without affecting others, which it seems to do, then it looks OK to me at a glance.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2161?email_source=notifications&email_token=AAIOWJYXV5AHY3NHMF6LCCTPWXXKPA5CNFSM4HOYRDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWAZT4I#issuecomment-495032817">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3XM7PKBAUL2FPINXDPWXXKPANCNFSM4HOYRDFA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4XQASUO673H4JVYF3PWXXKPA5CNFSM4HOYRDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWAZT4I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2161?email_source=notifications\u0026email_token=AAIOWJYXV5AHY3NHMF6LCCTPWXXKPA5CNFSM4HOYRDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWAZT4I#issuecomment-495032817",
"url": "https://github.com/geany/geany/pull/2161?email_source=notifications\u0026email_token=AAIOWJYXV5AHY3NHMF6LCCTPWXXKPA5CNFSM4HOYRDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWAZT4I#issuecomment-495032817",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>