[openbox] mikabox edge mousebuilding

Alexey Korop akorop at gmail.com
Mon Jan 19 10:12:41 EST 2015


Mikael Magnusson пишет 12.01.2015 23:30:
 ??>>    The corners of the screen and the lines of the screen
 ??>> edges are the edge zones named ScreenTopLeft, ScreenTop,
 ??>> ScreenTopRight, ScreenRight, ScreenBottomRight,
 ??>> ScreenBottom, ScreenBottomLeft, ScreenLeft.    Each of
 ??>> these zones is the context for mouse bindings. Edge context
 ??>> has the highest priority - edge bindings works even with
 ??>> full-screen applications.    The mouse events that are not
 ??>> binded in the some zone are ignored in this zone.
 MM> Yeah, seems about right.

   The nice function! However, this implies also some disadvantages.
   1) The user can not disable the activity of selected zones. Let's say
Lxpanel is located at the bottom of the screen. In this case, a mouse
click on the lower screen pixels will not lead to the actions that
Lxpanel user expects.
   This problem can be solved if only those zones will be enabled  which
actually mentioned in rc.xml.
   2) Usually may be reasonably to define many common bindings for all
edge zones (at me all bindings of the contexts "Desktop" and "Root").
This will lead to a macabre copypasting.
   To solve this problem, it is sufficient to introduce the ability to
import the bindings from other contexts. For instance

<!-- ScreenTop has only desktop+root bindings -->
   <context name="ScreenTop">
       <import="Desktop"></<import>
       <import="Root"></<import>
   </context>.
<!-- ScreenTBottomLeft is invisible "start" button also -->
    <context name="ScreenTBottomLeft">
       <import="ScreenTop"></<import>
       <mousebind action="Press" button="Left">
         <action name="ShowMenu">
            <menu>desktop-app-menu</menu>
         </action>
      </mousebind>
   </context>.

   Where I may to send the patches?

-- 
Yours truly Alexey


More information about the openbox mailing list