Fix a possible crash when pSrc->pDrawable is NULL.
Signed-off-by: Colin Harrison <email address hidden>
Signed-off-by: Jeremy Huddleston <email address hidden>
(cherry picked from commit 7e178ffbed7c8557faf8d471ad275aa2b0365e1d)
Rootless: Abstract some of the Xplugin specific stuff which has crept into rootlessWindow.c
The rootless extension now directly calls some Xplugin functions, and relies
on types defined in Xplugin.h, which isn't very abstracted :-)
This patch is a start at abstracting some of the Xplugin specific stuff which
has crept into rootlessWindow.c. This has been done in a pretty mindless fashion,
without much thought as to if the additions to the generic rootless interface are
the correct ones
There is some confusion as to if RootlesscolormapCallback() returns a Bool or
xp_error_enum value (not so abstact), but I have no way of checking, of finding
out if Xplugin actually checks the result :-)
Based on patches from Colin Harrison, Jon Turney and Yaakov Selkowitz
Signed-off-by: Jon TURNEY <email address hidden>
Signed-off-by: Jeremy Huddleston <email address hidden>
(cherry picked from commit 6980f77892e0409b44bd8f33ba82e7273c6462a4)
This fixes the problem where (0, 0) was sent as the mouse location with scroll
button events causing the event to not reach the client.
(cherry picked from commit c4886fbabc1d8b4054654b227fcad83f58e8e798)