Was trying to use a logical operator instead? https://github.com/linuxmint/xviewer/blob/b8cc32f70b96a523ea35bc06166aa672dab84ffa/src/xviewer-window.c#L2655 It is recommended to use parentheses.