VirtualBox

Opened 14 years ago

Last modified 10 years ago

#8057 reopened defect

First mouse click in virtual screen interpreted as drag

Reported by: Matthew Francis Owned by:
Component: guest additions Version: VirtualBox 4.0.0
Keywords: Cc:
Guest type: Linux Host type: Mac OS X

Description (last modified by Frank Mehnert)

With an OSX host and Linux (Fedora 14) guest with guest additions installed, a mouse click into the guest that also transfers focus to the running VirtualBox host window causes an undesired drag from the previous mouse position within the guest (before host focus moved). This can have a number of undesirable effects on the guest depending on what exactly is on screen at the time.

Steps to reproduce:

  1. Install Fedora 14 and guest additions on an OSX host, and run in single-window mode with mouse integration enabled
  1. With a clean F14 desktop (no windows open), focus another host (OSX) window
  1. Left-click and hold at any position on the F14 desktop. A selection rectangle should be visible from the last position of the mouse within the guest before host focus was lost (the bug occurs even without holding, but the desktop selection rectangle shows what is happening clearly)

Expected behaviour: The click (or drag) should be experienced by the guest as starting from the position of the click into the guest desktop, not the position of the mouse prior to loss of host focus

Attachments (1)

Fedora 14-2011-01-11-14-17-34.log (54.9 KB ) - added by Matthew Francis 14 years ago.
VBox log

Download all attachments as: .zip

Change History (10)

by Matthew Francis, 14 years ago

VBox log

comment:1 by Matthew Francis, 13 years ago

This bug is still present (and still annoying) with VB 4.0.10 and Fedora 15

comment:2 by mickey, 13 years ago

this issue happens to me with different linux guests, and is extremely annoying (thinking of virtualbox alternatives because of it). please make top priority!

comment:3 by Michael Thayer, 13 years ago

Could you please do the following to help understand what is happening: start a Linux virtual machine in which you can trigger this with the environment variable "VBOX_RELEASE_LOG=main.e.l.l2.l3.f" set (this should cause lots of additional information to be added to the log file, including all mouse movement information), and then reproduce the issue with the "xev" application running to get information about mouse movement events from the point of view of the guest? Then attach the log file and post the "xev" output to this ticket? If necessary (and if you can be sure of getting them) you can truncate both to just the relevant parts.

comment:4 by Frank Mehnert, 12 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

No response, closing.

comment:5 by boconnor, 11 years ago

This happens to me on MacOSX host 10.8.3 and Mint 13 guest. It's easy to reproduce on multiple mac laptops and my desktop.

This is extremely annoying. The ticket is marked as "fixed" but this issue is not "fixed" in the latest release of VirtualBox for the mac.

Does anyone on the dev team for this project use a mac and run a Ubuntu/Fedora/Mint guest? I'm shocked that this is still a bug since it makes the application very tedious to use. I have to click the VirtualBox window on the Mac and then click inside the window to prevent this from happening.

Can someone from the team please reopen this issue?

comment:6 by Michael Thayer, 11 years ago

Resolution: fixed
Status: closedreopened

As you may have seen, the ticket was closed because at the time no one showed any continued interest in resolving the issue. If you are interested then you could try to gather the information that I requested from the previously affected people. I am not aware of anyone on the development team being affected by this.

comment:7 by mvherweg, 11 years ago

I want to add that this also happens to me with a slightly different setup: Latest virtualbox software running on windows 7 pro. The virtual machine is a Xubuntu 12.4 image. I connect to the VM from my Macbook Air (Mavericks) using Cord. (i.e., i have remote display enabled for the VM)

And i do get exactly the same issue as described here.

comment:8 by thehcma, 10 years ago

I can report that this also happens in version 4.3.18. MacOS as host and both Centos 6.5 and Ubuntu 14.04 guests.

When attempting to get the xev events - having the focus outside of the Virtual Box window and then clicking on a Konsole window in the guest, no mouse event is generated, yet the window is affected by a "text highlight".

I can switch the focus back to the guest without disturbance if I use a Control-Tab switch from the host. But clicking is always disruptive.

I am willing to extract whatever information is need to help fixing this.

comment:9 by thehcma, 10 years ago

One important note about my configuration - I am using two monitors. And the guest is running full screen on the second monitor, when I trigger the bug (and, naturally, when I have to set the focus back to the guest running in a VM from the window of an application running in the host).

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette