You are not logged in.

#1 2023-01-14 04:54:56

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

Client List Combined Menu in the middle of the screen [SOLVED]

I am trying to bring the client-list-combined-menu (W-Tab or the middle mouse button) to appear in the middle of the screen. My rc.xml has this at the bottom as application settings, but it doesn't work.

<application name="client-list-combined-menu">
  <position force="yes">
    <x>center</x>
    <y>center</y>
  </position>
</application>

Is there any other way?

Also, if it possible that I can place the menu different from keyboard and mouse triggers? It would be nice to have it in the middle of the screen when activated by the keyboard while at the mouse pointer location when activated using the middle button.

Last edited by linux_user (2023-01-27 04:27:35)


"Blind faith to authority is the greatest enemy of truth."

Offline

#2 2023-01-26 09:51:04

JCN-9000
Member
From: Turin, Italy
Registered: 2016-04-22
Posts: 22

Re: Client List Combined Menu in the middle of the screen [SOLVED]

Since client-list-combined-menu is an internal menu, not an application, you have to put the position info along with its definition:

    <keybind key="C-Tab">
      <action name="ShowMenu">
        <menu>client-list-combined-menu</menu>
        <position force="yes">
          <x>center</x>
          <y>center</y>
        </position>
      </action>
    </keybind>

so you can have the menu appear centered when using the kbd and following the mouse otherwise.

Ref: http://openbox.org/wiki/Help:Actions  ShowMenu

Offline

#3 2023-01-27 04:26:54

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

Re: Client List Combined Menu in the middle of the screen [SOLVED]

Thank you very much for the solution.


"Blind faith to authority is the greatest enemy of truth."

Offline

Board footer

Powered by FluxBB