Fixed bug with acquiring winId of window under the system mouse. It now works with virtual cursors.