disable Alt+Tab

bridged with qdn.public.qnx4.photon
Post Reply
sam

disable Alt+Tab

Post by sam » Fri Jul 11, 2003 5:31 am

hi,

I want to disable switching between applications using 'Alt+Tab' keys.

How we can disable the Alt+Tab handling in photon?

thanks in advance.

sameer.

Wojtek Lerch

Re: disable Alt+Tab

Post by Wojtek Lerch » Mon Jul 14, 2003 1:55 pm

sam <seto@vsnl.com> wrote:
hi,

I want to disable switching between applications using 'Alt+Tab' keys.

How we can disable the Alt+Tab handling in photon?
Since pwm doesn't have an option to disable it, the only way (other than
writing your own window manager, or running without a window manager) is
to filter out Alt-tabs before pwm can see them. Write a small program
that opens a region just behind the device region, makes the region
sensitive and opaque to key events, and re-emits any received key event
except an Alt-tab.

sam

Re: disable Alt+Tab

Post by sam » Wed Jul 16, 2003 5:58 am

hi Wojtek Lerch,

thanks for reply,

i have tried that, i opened a transparent region which is child of
ROOT_RID and FFRONT flag set. i am capturing the Alt+Tab key and NOT
reemitting it. But even after that if i press Alt+Tab key photon shows the
'process name' tag in the center of the screen. i want to disable this tag
from appearing on the screen.

is this means that photon is processing the key pressed before my
transparent region get the key event ?

thanks in advance,

sameer

Wojtek Lerch

Re: disable Alt+Tab

Post by Wojtek Lerch » Wed Jul 16, 2003 1:57 pm

sam <seto@vsnl.com> wrote:
hi Wojtek Lerch,

thanks for reply,

i have tried that, i opened a transparent region which is child of
ROOT_RID and FFRONT flag set. i am capturing the Alt+Tab key and NOT
reemitting it. But even after that if i press Alt+Tab key photon shows the
'process name' tag in the center of the screen. i want to disable this tag
from appearing on the screen.

is this means that photon is processing the key pressed before my
transparent region get the key event ?
When you create a region without specifying a brother, it always goes
*behind* any existing force-front regions. And the region tha pwm
collects keys on is force front.

You need to create your rwgion just behind the device region by
specifying rid 1 as the brother in front.

sam

Re: disable Alt+Tab

Post by sam » Mon Jul 21, 2003 5:22 am

hi Wojtek Lerch,

thank you very much for the information.

sameer

Post Reply

Return to “qdn.public.qnx4.photon”