Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Context menu mouse issue. #643
First, this is likely not a purely git-cola issue, as this also appear in an other qt application (qgit).
An easy way to solve my issue (and for others, I assume) would be to nudge the context menu position by 2~3 pixels in every contextMenuEvent function.
def contextMenuEvent(self, event): ... menu.exec_(self.mapToGlobal(event.pos()))
def contextMenuEvent(self, event): ... ev_pos = event.pos(); ev_pos.setX(ev_pos.x() + CONTEXT_MENU_NUDGE) menu.exec_(self.mapToGlobal(event.pos()))
I will write a proper pull request in a few days, if this is acceptable.
referenced this issue
Dec 4, 2017
Since more than a few days passed already I decided to take action: please find corresponding pr. I took different path to solve this issue though: instead of moving menu few pixels (which I tried as well, but found akward), I introduced short period of insensitivity right after menu was created.