Re: make the root-menu appear at a fixed location when opening it with a keyboard shortcut, possible?

Mikael Magnusson <[email protected]>
Newsgroups gmane.comp.window-managers.openbox
Message-ID <CAHYJk3Si+A+DYNXkXMJtW6bjkVn-cMi5j0MnK7V5GOrdUkVHyA@mail.gmail.com>
On 6 October 2014 07:43, TT <[email protected]> wrote:
> Mikael Magnusson wrote:
>>
>> On 3 October 2014 22:58, Micha <[email protected]> wrote:
>>>
>>> Hi folks !
>>> I don't know, how to step into an active subject, hope this will appear
>>> where it belongs to.:-[
>>> When I first read the posts of this topic, I wouldn't believe, that there
>>> is
>>> any problem achieving such behaviour.
>>> But then I realized, there are two different actions involved:
>>> 1.: Setting the pointer ( with Xdotool )
>>> 2.: Calling the root-menu
>>
>> You guys know openbox is open source right? There's no need for these
>> awful hacks proliferating, you can just add a parameter to the
>> showmenu action.
>
> You mean like this? =>
>       <mousebind action="Press" button="Right">
>         <action name="ShowMenu">
>           <menu>root-menu</menu>
>           <position force="yes">
>             <x>100</x>
>             <y>100</y>
>           </position>
>         </action>
>       </mousebind>
> For a moment i thought, wow, could it be that simple...
> but unfortunately it doesn't work that way.
> the actual current position of the mouse pointer takes precedence.
>
> but in a way i agree --
> why does one need to create hacks to have the root menu at a certain
> position?
>  -- i think this is rather a case of adjusting your habits.

I mean that, and write the code, and send the patch here. :)

-- 
Mikael Magnusson
_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.