naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.15k stars 78 forks source link

Fix hexadecimal parsing in parseWindow() #237

Closed foxpy closed 3 years ago

foxpy commented 3 years ago

Due to invalid usage of std::stoi() hexadecimal values prefixed with "0x" were always parsed as integers with value of 0.

This fix uses base 0 instead of default base 10, leading to automatic base detection.

Closes #234

naelstrof commented 3 years ago

Looking great! Thanks