[Github-comments] [geany/geany] Make sure GDK_MOD2_MASK is cleared when getting modifiers (#1636)

Colomban Wendling notifications at xxxxx
Thu Oct 12 18:48:02 UTC 2017


b4n approved this pull request.

Looks sensible

>  		mods |= GEANY_PRIMARY_MOD_MASK;
+		mods &= ~GDK_MOD2_MASK;

You could do (not sure if it's better though)
```c
mods = mods ^ GDK_MOD2_MASK | GEANY_PRIMARY_MOD_MASK;
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1636#pullrequestreview-69027367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171012/57676488/attachment.html>


More information about the Github-comments mailing list