Window as background problems

Hi,
I have made a window and made it render to the background rather than
as a normal window, this means it completely obscures the wallpaper and
just looks like the normal background. This is what I want, except that
the Desktop Menu still appears on clicking the right mouse button.

I have attached my own menu to my window but it just shows up on top of
the Desktop Menu. I have a setup function associated with the menu, and
it gets called no problem. If the setup function returns Pt_CONTINUE, I
get both menus, if I return Pt_END or Pt_CONSUME I only get the Desktop
Menu, what I want is my menu, and no Desktop Menu at all. What gives?

Cheers

Garry

Hello Garry

The Desktop menu is brought up by the window manager. There is a region
that is in front of backdrop windows that catches the mouse event and
then brings up the desktop menu. It then re-emits the event. If you
want to disable the desktop menu then pass the -W option to pwm ( you
can use the PHWMOPTS environment variable ). This will disable the
desktop menu so now, when you return Pt_CONTINUE in your setup function,
only your menu will appear.

Rodney

Garry wrote:

Hi,
I have made a window and made it render to the background rather
than as a normal window, this means it completely obscures the wallpaper
and just looks like the normal background. This is what I want, except
that the Desktop Menu still appears on clicking the right mouse button.

I have attached my own menu to my window but it just shows up on top of
the Desktop Menu. I have a setup function associated with the menu, and
it gets called no problem. If the setup function returns Pt_CONTINUE, I
get both menus, if I return Pt_END or Pt_CONSUME I only get the Desktop
Menu, what I want is my menu, and no Desktop Menu at all. What gives?

Cheers

Garry

Rodney Dowdall wrote:

Hello Garry

The Desktop menu is brought up by the window manager. There is a region
that is in front of backdrop windows that catches the mouse event and
then brings up the desktop menu. It then re-emits the event. If you
want to disable the desktop menu then pass the -W option to pwm ( you
can use the PHWMOPTS environment variable ). This will disable the
desktop menu so now, when you return Pt_CONTINUE in your setup function,
only your menu will appear.

Rodney

Thanks Rodney, that worked perfectly.

Cheers

Garry