Re: enter-only focus problem



On Mon, 19 Jun 2006 15:56:56 +1000, Vladimir Zolotykh <gsmith eurocom od ua> wrote:

Found a strange misbehaviour when focus set to "enter-only" (or maybe
it's my error in some settings ?).

In ~/.sawfishrc I have

  (bind-keys global-keymap "Button3-Click" '(popup-menu my-menu))

When I right-click outside any open window I get my-menu

When my focus is set to "Click" and I right-click on something
sensible in the focused window I get an application's specific context
menu. For example, if I right click on the Trash folder in the Folder
pane of the Sylpheed window I get Sylpheed context menu containing
"Create new folder" etc. It's normal I believe.

However, if I set focus to "enter-only" then moving mouse pointer
within bounds of the Sylpheed window and right clicking on the same
Trash folder gives me my-menu (not Sylpheed menu) as if I were cliking
outside any window. Visually Sylpheed window look as if it were
focused (window's title bar color etc.). The same is with any other
application.

I can't make neither head nor tail of this. Could you please help ?

I don't really think global-keymap is what you want to use. In fact, I don't understand why you get application-specific menus at all. It's my understanding that your global-keymap binding should come first before the application gets a chance to handle the event. (anyone?)

Perhaps root-window-keymap is what you want? Have a look here:

http://home.blarg.net/~sand/sawfish/v0.11/sawfish/Keymaps.html#Keymaps

I'm not 100% sure, but maybe the better question is why doesn't the global-keymap binding always have priority?

--
Eric Mangold



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]