Move mouse before click

This commit is contained in:
Ricardo Duarte 2017-01-10 12:22:06 -08:00 committed by Jay Sorg
parent f68d2b8a59
commit a959a9f851

View File

@ -1210,6 +1210,10 @@ xrdp_wm_mouse_click(struct xrdp_wm *self, int x, int y, int but, int down)
{
if (self->mm->mod->mod_event != 0)
{
if (down)
{
self->mm->mod->mod_event(self->mm->mod, WM_MOUSEMOVE, x, y, 0, 0);
}
if (but == 1 && down)
{
self->mm->mod->mod_event(self->mm->mod, WM_LBUTTONDOWN, x, y, 0, 0);