LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-25-2016, 07:26 PM   #1
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 932

Rep: Reputation: Disabled
virt-manager virtual terminal often steals focus unless minimized


Hi,

I really like how the virtual terminals work under virt-manager.
In particular, the possibility of switching between different VT-s using Ctrl+Fx is really nice (and not being switched to the actual VT of the host).

But I often find myself in a really annoying situation.
Say, I open some application that grabs the focus and virt-manager window goes behind. I start typing in the application's window (most often terminal emulator) and I don't see the characters showing up ;-) Basically, they go to the virtual-manager VT emulator window, although it is a background window.

Minimizing the virt-manager window solves the problem.
It's not easy to reproduce, because it does not happen every time (which is even more annoying ;-)).

Do you possibly know what could be causing this behavior?

Any help well appreciated!
Thanks in advance!

--
Best regards,
Andrzej Telszewski
 
Old 08-26-2016, 07:53 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
never happened to me, what distro and DM/WM are you on?
 
Old 08-26-2016, 05:25 PM   #3
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 932

Original Poster
Rep: Reputation: Disabled
Hi,

I'm running Slackware 14.2.
DE: Xfce 4.12
WM: KWin (kde-workspace-4.11.22)
virt-manager: 1.4.0
vte3: 0.44.2

I was wrong. I can actually reproduce the problem perfectly:
1. Launch the VM with VT.
2. Launch host's terminal emulator.
3. Bang, the cursor still belongs to VM's VT, although the just launched host's terminal emulator is actually foreground window and the virtual machine is in background.

It is not limited to terminal emulator. If I launch e.g. Writer, the cursor stays in VM too.
I have to switch the windows multiple times or minimize the VM window to recover the cursor.
One observation though: if the other application (be it terminal emulator or Writer) gains the cursor once, from now on it behaves correctly, i.e. switching between the VM's VT and terminal emulator windows does not steal the cursor from the latter. It looks as if the VM was holding a lock on the input against freshly launched applications, until the VM's window is minimized.

Any ideas? :-)

--
Best regards,
Andrzej Telszewski
 
Old 08-26-2016, 08:14 PM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Like I said, never ran into this before, however, I stick to Fedora and RHEL usually with Gnome
 
Old 08-27-2016, 04:34 PM   #5
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 932

Original Poster
Rep: Reputation: Disabled
Hi,

There is some problem with the Spice display type.
Because it works as expected with VNC display type.

Anyways, I'm not entirely sure if I'm gonna pursue the solution for this particular problem.
Since I don't actually need graphics output, I'm using serial console.
Basically, I need to see if the system has booted and if it hasn't, what was the reason.
Other than that, I'm using ssh to do the job.

--
Best regards,
Andrzej Telszewski
 
Old 11-16-2016, 07:24 PM   #6
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 932

Original Poster
Rep: Reputation: Disabled
Hi,

It seems that switching to spice-gtk 0.33 solves the problem.
Previously I've been on version 0.32.

--
Best regards,
Andrzej Telszewski
 
Old 11-17-2016, 03:45 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,003

Rep: Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408
Thanks for the update and solution.
 
Old 11-19-2016, 07:48 PM   #8
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
I said it was a bug from the very start...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloneing a virtual machine using virt-manager tool? linuxarun86 Linux - Newbie 6 10-18-2013 03:16 AM
have a problem while creating virtual machine using virt-manager virtualdaemon Linux - Virtualization and Cloud 2 07-09-2010 08:50 PM
second X DISPLAY steals focus on application exit jhwilliams Linux - Software 1 08-23-2007 01:22 PM
Flash animation steals focus philippeP Linux - Software 0 04-07-2007 08:29 AM
gAIM steals focus.. Avi Linux - Newbie 2 06-29-2003 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration