You are not logged in.

#1 2010-12-26 22:24:53

helloworld1
Member
Registered: 2010-12-26
Posts: 72

Is there a way to disable the alt-f4 in qemu-kvm?

I am qemu-kvm for years in Fedora. There they transfer the alt-f4 command to the guest. But in arch, the alt-f4 will directly close the qemu's window.  I would like to know how to disable the alt-f4. Thank yoU!

Offline

#2 2010-12-28 20:58:08

helloworld1
Member
Registered: 2010-12-26
Posts: 72

Re: Is there a way to disable the alt-f4 in qemu-kvm?

Anyone can help?

Offline

#3 2010-12-28 21:08:02

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Is there a way to disable the alt-f4 in qemu-kvm?

Alt-f4 closes windows not sure what Window Manager you are using in Gnome for example you could edit keyboard shortcut


Mr Green

Offline

#4 2010-12-29 00:51:32

helloworld1
Member
Registered: 2010-12-26
Posts: 72

Re: Is there a way to disable the alt-f4 in qemu-kvm?

Mr Green wrote:

Alt-f4 closes windows not sure what Window Manager you are using in Gnome for example you could edit keyboard shortcut

I am using metacity. I wonder if there is a app specific way.  I don't want to disable all alt-f4.

In fedora with metacity and their QEMU, alt-f4 will only close window in guest not the host window.

Offline

#5 2010-12-29 07:22:03

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Is there a way to disable the alt-f4 in qemu-kvm?

Post output of

uname -a

which version of qemu are you using?

Last edited by Mr Green (2010-12-29 07:22:22)


Mr Green

Offline

#6 2010-12-29 14:14:50

helloworld1
Member
Registered: 2010-12-26
Posts: 72

Re: Is there a way to disable the alt-f4 in qemu-kvm?

$ uname -a
Linux libertyhost 2.6.36-ARCH #1 SMP PREEMPT Fri Dec 10 20:32:37 CET 2010 x86_64 Intel(R) Core(TM) i7 CPU L 640 @
2.13GHz GenuineIntel GNU/Linux

$pacman -Qi qemu-kvm
Name           : qemu-kvm
Version        : 0.13.0-1

Guest: Fedora 14, winxp

Offline

#7 2010-12-29 14:32:07

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Is there a way to disable the alt-f4 in qemu-kvm?

It might be a focusing issue I see Ctrl + Alt is used as a switch to get back to host machine, again this may clash with keyboard shortcuts in Gnome


Mr Green

Offline

#8 2010-12-30 01:12:58

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: Is there a way to disable the alt-f4 in qemu-kvm?

If you're using Gnome, go to System/Preferences/Keyboard Shortcuts and remove the alt-f4 shortcut. If you're not on Gnome, you'll have to figure out how to disable the shortcut in your DE/WM.

Offline

#9 2010-12-30 01:46:04

helloworld1
Member
Registered: 2010-12-26
Posts: 72

Re: Is there a way to disable the alt-f4 in qemu-kvm?

rowdog wrote:

If you're using Gnome, go to System/Preferences/Keyboard Shortcuts and remove the alt-f4 shortcut. If you're not on Gnome, you'll have to figure out how to disable the shortcut in your DE/WM.

I know, But I don't want to disable alt-f4 for other programs.

Offline

Board footer

Powered by FluxBB