naughty: Correctly handle rowstride on icons
commitee46c9e5aeb4776e52748fd1ca7206e1d99f8e48
authorUli Schlachter <psychon@znc.in>
Sat, 17 Nov 2012 20:37:40 +0000 (17 21:37 +0100)
committerUli Schlachter <psychon@znc.in>
Sat, 17 Nov 2012 20:37:40 +0000 (17 21:37 +0100)
tree68f49033c67c69b1a8a7375d8cce8a6352508588
parent882099f9001148eb4459c4ccb2c9bad2b774106f
naughty: Correctly handle rowstride on icons

The notification spec allow sending icons as data with a dbus message. The
rowstride for this can be set which means there can be bytes after each row of
icon data which must be ignored.

Before this commit, naughty wasn't properly ignoring these garbage bytes which
resulted in weird notifications.

Thanks to dadrc for reporting that gmusicbrowser's notifications didn't work.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/naughty.lua.in