Skip to main content

Thread: Launched apps don't get focus in oneiric


one of habits retain years crunchbang use lot of keyboard shortcuts launch favorite software. i've been editing ~/.config/openbox/lubunturc.xml end years. something's changed 11.10: these apps start below whatever has focus, instead of grabbing it. have alt-tab them, , since launch them because need them now, annoying. happens alt-f2 run dialog, , aggravating beyond measure.

lubuntu-rc.xml below:
code:
<?xml version="1.0" encoding="utf-8"?> <!-- not edit file, overwritten on install.         copy file $home/.config/openbox/ instead. --> <openbox_config xmlns="http://openbox.org/3.4/rc">   <resistance>     <strength>10</strength>     <screen_edge_strength>20</screen_edge_strength>   </resistance>   <focus>     <focusnew>yes</focusnew>     <!-- try focus new windows when appear. other rules        apply -->     <followmouse>no</followmouse>     <!-- move focus window when move mouse -->     <focuslast>yes</focuslast>     <!-- focus last used window when changing desktops, instead of 1        under mouse pointer. when followmouse enabled -->     <undermouse>no</undermouse>     <!-- move focus under mouse, when mouse not moving -->     <focusdelay>200</focusdelay>     <!-- when followmouse enabled, mouse must inside window        many milliseconds (1000 = 1 sec) before moving focus -->     <raiseonfocus>yes</raiseonfocus>     <!-- when followmouse enabled, , window given focus moving        mouse it, raise window -->   </focus>   <placement>     <policy>smart</policy>     <!-- 'smart' or 'undermouse' -->     <center>yes</center>     <!-- whether place windows in center of free area found or        top left corner -->     <monitor>any</monitor>     <!-- smart placement on multi-monitor system, try place new windows        on: 'any' - monitor, 'mouse' - mouse is, 'active' -        active window -->     <primarymonitor> </primarymonitor>   </placement>   <theme>     <name>bear2</name>     <titlelayout>ndlimc</titlelayout>     <!--       available characters ndslimc, each can occur @ once.       n: window icon       l: window label (aka title).       i: iconify       m: maximize       c: close       s: shade (roll up/down)       d: omnipresent (on desktops).   -->     <keepborder>yes</keepborder>     <animateiconify>yes</animateiconify>     <font place="activewindow">       <name>sans</name>       <size>10</size>       <!-- font size in points -->       <weight>bold</weight>       <!-- 'bold' or 'normal' -->       <slant>normal</slant>       <!-- 'italic' or 'normal' -->     </font>     <font place="inactivewindow">       <name>sans</name>       <size>10</size>       <!-- font size in points -->       <weight>bold</weight>       <!-- 'bold' or 'normal' -->       <slant>normal</slant>       <!-- 'italic' or 'normal' -->     </font>     <font place="menuheader">       <name>sans</name>       <size>10</size>       <!-- font size in points -->       <weight>normal</weight>       <!-- 'bold' or 'normal' -->       <slant>normal</slant>       <!-- 'italic' or 'normal' -->     </font>     <font place="menuitem">       <name>sans</name>       <size>10</size>       <!-- font size in points -->       <weight>normal</weight>       <!-- 'bold' or 'normal' -->       <slant>normal</slant>       <!-- 'italic' or 'normal' -->     </font>     <font place="activeonscreendisplay">       <name/>     </font>     <font place="inactiveonscreendisplay">       <name>sans</name>       <size>8</size>       <weight> </weight>       <slant> </slant>     </font>   </theme>   <desktops>     <!-- stuff used @ startup, pagers allow change them        during session         these default values use when other ones not set        other applications, or saved in session         use obconf if want change these without having log out        , in -->     <number>2</number>     <firstdesk>1</firstdesk>     <names>       <!-- set names here if want to, this:     <name>left</name>     <name>right</name>     -->     </names>     <popuptime>875</popuptime>     <!-- number of milliseconds show popup when switching        desktops.  set 0 disable popup. -->   </desktops>   <resize>     <drawcontents>yes</drawcontents>     <popupshow>nonpixel</popupshow>     <!-- 'always', 'never', or 'nonpixel' (xterms , such) -->     <popupposition>center</popupposition>     <!-- 'center', 'top', or 'fixed' -->     <popupfixedposition>       <!-- these used if popupposition set 'fixed' -->       <x>10</x>       <!-- positive number distance left edge, negative number          distance right edge, or 'center' -->       <y>10</y>       <!-- positive number distance top edge, negative number          distance bottom edge, or 'center' -->     </popupfixedposition>   </resize>   <!-- can reserve portion of screen windows not cover when      maximized, or when placed.      many programs reserve space automatically, can use in other      cases. -->   <margins>     <top>0</top>     <bottom>0</bottom>     <left>0</left>     <right>0</right>   </margins>   <dock>     <position>topleft</position>     <!-- (top|bottom)(left|right|)|top|bottom|left|right|floating -->     <floatingx>0</floatingx>     <floatingy>0</floatingy>     <nostrut>no</nostrut>     <stacking>above</stacking>     <!-- 'above', 'normal', or 'below' -->     <direction>vertical</direction>     <!-- 'vertical' or 'horizontal' -->     <autohide>no</autohide>     <hidedelay>300</hidedelay>     <!-- in milliseconds (1000 = 1 second) -->     <showdelay>300</showdelay>     <!-- in milliseconds (1000 = 1 second) -->     <movebutton>middle</movebutton>     <!-- 'left', 'middle', 'right' -->   </dock>   <keyboard> <chainquitkey>c-g</chainquitkey> <!-- keybindings desktop switching --> <keybind key="c-a-left"> <action name="desktopleft"> <dialog>no</dialog> <wrap>no</wrap> </action> </keybind> <keybind key="c-a-right"> <action name="desktopright"> <dialog>no</dialog> <wrap>no</wrap> </action> </keybind> <keybind key="c-a-up"> <action name="desktopup"> <dialog>no</dialog> <wrap>no</wrap> </action> </keybind> <keybind key="c-a-down"> <action name="desktopdown"> <dialog>no</dialog> <wrap>no</wrap> </action> </keybind> <keybind key="s-a-left"> <action name="sendtodesktopleft"> <dialog>no</dialog> <wrap>no</wrap> </action> </keybind> <keybind key="s-a-right"> <action name="sendtodesktopright"> <dialog>no</dialog> <wrap>no</wrap> </action> </keybind> <keybind key="s-a-up"> <action name="sendtodesktopup"> <dialog>no</dialog> <wrap>no</wrap> </action> </keybind> <keybind key="s-a-down"> <action name="sendtodesktopdown"> <dialog>no</dialog> <wrap>no</wrap> </action> </keybind> <keybind key="w-f1"> <action name="desktop"> <desktop>1</desktop> </action> </keybind> <keybind key="w-f2"> <action name="desktop"> <desktop>2</desktop> </action> </keybind> <keybind key="w-f3"> <action name="desktop"> <desktop>3</desktop> </action> </keybind> <keybind key="w-f4"> <action name="desktop"> <desktop>4</desktop> </action> </keybind> <keybind key="w-d"> <action name="toggleshowdesktop"/> </keybind> <!-- keybindings windows --> <keybind key="a-f4"> <action name="close"/> </keybind> <keybind key="a-escape"> <action name="lower"/> <action name="focustobottom"/> <action name="unfocus"/> </keybind> <keybind key="a-space"> <action name="showmenu"> <menu>client-menu</menu> </action> </keybind> <!-- keybindings window switching --> <keybind key="a-tab"> <action name="nextwindow"/> </keybind> <keybind key="a-s-tab"> <action name="previouswindow"/> </keybind> <keybind key="c-a-tab"> <action name="nextwindow"> <panels>yes</panels> <desktop>yes</desktop> </action> </keybind> <!-- keybindings running applications --> <keybind key="w-f"> <action name="execute"> <startupnotify> <enabled>true</enabled> <name>pcmanfm</name> </startupnotify> <command>pcmanfm</command> </action> </keybind> <!-- added hand -->  <keybind key="w-t"> <action name="execute"> <startupnotify> <enabled>true</enabled> <name>lxterminal</name> </startupnotify> <command>lxterminal</command> </action> </keybind>  <keybind key="w-w"> <action name="execute"> <startupnotify> <enabled>true</enabled> <name>firefox</name> </startupnotify> <command>firefox</command> </action> </keybind>  <keybind key="c-s-w"> <action name="execute"> <startupnotify> <enabled>true</enabled> <name>midori</name> </startupnotify> <command>midori</command> </action> </keybind>  <keybind key="w-e"> <action name="execute"> <startupnotify> <enabled>true</enabled> <name>mousepad</name> </startupnotify> <command>mousepad</command> </action> </keybind>  <keybind key="c-w-e"> <action name="execute"> <startupnotify> <enabled>true</enabled> <name>abiword</name> </startupnotify> <command>abiword</command> </action> </keybind>  <keybind key="w-g"> <action name="execute"> <startupnotify> <enabled>true</enabled> <name>galculator</name> </startupnotify> <command>galculator</command> </action> </keybind>   <!--keybindings lxpanel --> <keybind key="w-r"> <action name="execute"> <command>lxpanelctl run</command> </action> </keybind> <keybind key="a-f2"> <action name="execute"> <command>lxpanelctl run</command> </action> </keybind> <keybind key="c-escape"> <action name="execute"> <command>lxpanelctl menu</command> </action> </keybind> <keybind key="f11"> <action name="togglefullscreen"/> </keybind> <!-- launch task manager ctrl+alt+del --> <keybind key="a-c-delete"> <action name="execute"> <command>lxtask</command> </action> </keybind> <!-- fast access terminal --> <keybind key="c-a-t"> <action name="execute"> <command>lxterminal</command> </action> </keybind> <!-- fast access filemanager --> <keybind key="c-a-d"> <action name="execute"> <startupnotify> <enabled>true</enabled> <name>pcmanfm</name> </startupnotify> <command>pcmanfm</command> </action> </keybind> <!-- keybinding printscreen key --> <keybind key="print"> <action name="execute"> <execute>scrot</execute> </action> </keybind> <keybind key="a-print"> <action name="execute"> <execute>scrot -s</execute> </action> </keybind>          * <keybind key="xf86audioraisevolume"> *  * *<action name="execute"> *     ** *<command>amixer -q sset master 3%+</command> * *   </action>   * </keybind>    * <keybind key="xf86audiolowervolume"> * * * <action name="execute"> * ** *    <command>amixer -q sset master 3%-</command> * *   </action>   * </keybind>    * <keybind key="xf86audiomute"> * * * <action name="execute"> * ** *    <command>amixer -q sset master toggle</command> * *   </action>   * </keybind>    * <keybind key="xf86www"> * * * <action name="execute"> * ** *    <command>x-terminal-emulator</command> * *   </action>   * </keybind>    * <keybind key="xf86calculator"> * * * <action name="execute"> * ** *    <command>galculator</command> * *   </action>   * </keybind>    * <keybind key="xf86mycomputer"> * * * <action name="execute"> * ** *    <command>pcmanfm</command> * *   </action>   * </keybind>    * <keybind key="xf86terminal"> * * * <action name="execute"> * ** *    <command>x-terminal-emulator</command> * *   </action>  *  </keybind>     <!-- keybindings multimedia keys , lcd backlight     (alternative when not using gnome-power-manager or xfce4-volumed)    <keybind key="xf86audiomute">       <action name="execute">         <execute>/usr/bin/volume.sh mute</execute>       </action>     </keybind>      <keybind key="xf86audioraisevolume">       <action name="execute">         <execute>/usr/bin/volume.sh up</execute>       </action>     </keybind>      <keybind key="xf86audiolowervolume">       <action name="execute">         <execute>/usr/bin/volume.sh down</execute>       </action>     </keybind>      <keybind key="c-f7">       <action name="execute">         <execute>sleep 2;xset dpms force off</execute>       </action>     </keybind>      <keybind key="c-f10">       <action name="execute">         <execute>xbacklight -dec 10</execute>       </action>     </keybind>      <keybind key="c-f11">       <action name="execute">         <execute>xbacklight -inc 10</execute>       </action>     </keybind> -->    </keyboard>   <mouse>     <dragthreshold>8</dragthreshold>     <!-- number of pixels mouse must move before drag begins -->     <doubleclicktime>200</doubleclicktime>     <!-- in milliseconds (1000 = 1 second) -->     <screenedgewarptime>400</screenedgewarptime>     <!-- time before changing desktops when pointer touches edge of        screen while moving window, in milliseconds (1000 = 1 second).        set 0 disable warping -->     <context name="frame">       <mousebind button="a-left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="a-left" action="click">         <action name="unshade"/>       </mousebind>       <mousebind button="a-left" action="drag">         <action name="move"/>       </mousebind>       <mousebind button="a-right" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="a-right" action="drag">         <action name="resize"/>       </mousebind>       <mousebind button="a-middle" action="press">         <action name="lower"/>         <action name="focustobottom"/>         <action name="unfocus"/>       </mousebind>       <mousebind button="a-up" action="click">         <action name="desktopprevious"/>       </mousebind>       <mousebind button="a-down" action="click">         <action name="desktopnext"/>       </mousebind>       <mousebind button="c-a-up" action="click">         <action name="desktopprevious"/>       </mousebind>       <mousebind button="c-a-down" action="click">         <action name="desktopnext"/>       </mousebind>       <mousebind button="a-s-up" action="click">         <action name="sendtodesktopprevious"/>       </mousebind>       <mousebind button="a-s-down" action="click">         <action name="sendtodesktopnext"/>       </mousebind>     </context>     <context name="titlebar">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="move"/>       </mousebind>       <mousebind button="left" action="doubleclick">         <action name="togglemaximizefull"/>       </mousebind>       <mousebind button="middle" action="press">         <action name="lower"/>         <action name="focustobottom"/>         <action name="unfocus"/>       </mousebind>       <mousebind button="up" action="click">         <action name="shade"/>         <action name="focustobottom"/>         <action name="unfocus"/>         <action name="lower"/>       </mousebind>       <mousebind button="down" action="click">         <action name="unshade"/>         <action name="raise"/>       </mousebind>       <mousebind button="right" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="showmenu">           <menu>client-menu</menu>         </action>       </mousebind>     </context>     <context name="top">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="resize">           <edge>top</edge>         </action>       </mousebind>     </context>     <context name="left">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="resize">           <edge>left</edge>         </action>       </mousebind>     </context>     <context name="right">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="resize">           <edge>right</edge>         </action>       </mousebind>     </context>     <context name="bottom">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="resize">           <edge>bottom</edge>         </action>       </mousebind>       <mousebind button="middle" action="press">         <action name="lower"/>         <action name="focustobottom"/>         <action name="unfocus"/>       </mousebind>       <mousebind button="right" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="showmenu">           <menu>client-menu</menu>         </action>       </mousebind>     </context>     <context name="blcorner">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="resize"/>       </mousebind>     </context>     <context name="brcorner">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="resize"/>       </mousebind>     </context>     <context name="tlcorner">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="resize"/>       </mousebind>     </context>     <context name="trcorner">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="left" action="drag">         <action name="resize"/>       </mousebind>     </context>     <context name="client">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="middle" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="right" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>     </context>     <context name="icon">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>         <action name="showmenu">           <menu>client-menu</menu>         </action>       </mousebind>       <mousebind button="right" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="showmenu">           <menu>client-menu</menu>         </action>       </mousebind>     </context>     <context name="alldesktops">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="left" action="click">         <action name="toggleomnipresent"/>       </mousebind>     </context>     <context name="shade">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="left" action="click">         <action name="toggleshade"/>       </mousebind>     </context>     <context name="iconify">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="left" action="click">         <action name="iconify"/>       </mousebind>     </context>     <context name="maximize">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="middle" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="right" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="left" action="click">         <action name="togglemaximizefull"/>       </mousebind>       <mousebind button="middle" action="click">         <action name="togglemaximizevert"/>       </mousebind>       <mousebind button="right" action="click">         <action name="togglemaximizehorz"/>       </mousebind>     </context>     <context name="close">       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>         <action name="unshade"/>       </mousebind>       <mousebind button="left" action="click">         <action name="close"/>       </mousebind>     </context>     <context name="desktop"> <!--      <mousebind button="up" action="click">         <action name="desktopprevious"/>       </mousebind>       <mousebind button="down" action="click">         <action name="desktopnext"/>       </mousebind>   -->       <mousebind button="a-up" action="click">         <action name="desktopprevious"/>       </mousebind>       <mousebind button="a-down" action="click">         <action name="desktopnext"/>       </mousebind>       <mousebind button="c-a-up" action="click">         <action name="desktopprevious"/>       </mousebind>       <mousebind button="c-a-down" action="click">         <action name="desktopnext"/>       </mousebind>       <mousebind button="left" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>       <mousebind button="right" action="press">         <action name="focus"/>         <action name="raise"/>       </mousebind>     </context>     <context name="root">       <!-- menus -->       <mousebind button="middle" action="press">         <action name="showmenu">           <menu>client-list-combined-menu</menu>         </action>       </mousebind>       <mousebind button="right" action="press">         <action name="showmenu">           <menu>root-menu</menu>         </action>       </mousebind>     </context>     <context name="moveresize">       <mousebind button="up" action="click">         <action name="desktopprevious"/>       </mousebind>       <mousebind button="down" action="click">         <action name="desktopnext"/>       </mousebind>       <mousebind button="a-up" action="click">         <action name="desktopprevious"/>       </mousebind>       <mousebind button="a-down" action="click">         <action name="desktopnext"/>       </mousebind>     </context>   </mouse>   <menu>     <!-- can specify more 1 menu file in here , loaded,        don't make menu ids clash or, well, it'll kind of pointless -->     <!-- default menu file (or custom 1 in $home/.config/openbox/) -->     <file>/usr/share/lubuntu/openbox/menu.xml</file>     <hidedelay>200</hidedelay>     <!-- if press-release lasts longer setting (in milliseconds),        menu hidden again -->     <middle>no</middle>     <!-- center submenus vertically parent entry -->     <submenushowdelay>100</submenushowdelay>     <!-- 1 easy, time delay before showing submenu after hovering        on parent entry -->     <applicationicons>yes</applicationicons>     <!-- controls if icons appear in client-list-(combined-)menu -->     <managedesktops>yes</managedesktops>     <!-- show manage desktops section in client-list-(combined-)menu -->   </menu>   <applications>     <!--   # example comments through out. use these make   # own rules, without comments of course.    <application name="first element of window's wm_class property (see xprop)"               class="second element of window's wm_class property (see xprop)"                role="the window's wm_window_role property (see xprop)">   # name or class can set, or both. used match   # windows when appear. role can optionally set well,   # further restrict matches.    # name, class, , role use simple wildcard matching such   # used shell. can use * match characters , ? match   # single character.    # when multiple rules match window, applied, in   # order appear in list       # each element can left out or set 'default' specify not     # change attribute of window      <decor>yes</decor>     # enable or disable window decorations      <shade>no</shade>     # make window shaded when appears, or not      <position>       # position used if both x , y coordinate provided       # (and not set 'default')       <x>center</x>       # number 50, or 'center' center on screen. use negative number       # start right (or bottom <y>), ie -50 50 pixels       # right edge (or bottom).       <y>200</y>       <monitor>1</monitor>       # specifies monitor in xinerama setup.       # 1 first head, or 'mouse' wherever mouse     </position>      <focus>yes</focus>     # if window should try given focus when appears. if set     # yes doesn't guarantee window given focus.     # restrictions may apply, openbox try      <desktop>1</desktop>     # 1 first desktop, 'all' desktops      <layer>normal</layer>     # 'above', 'normal', or 'below'      <iconic>no</iconic>     # make window iconified when appears, or not      <skip_pager>no</skip_pager>     # asks not shown in pagers      <skip_taskbar>no</skip_taskbar>     # asks not shown in taskbars. window cycling actions     # skip past such windows      <fullscreen>yes</fullscreen>     # make window in fullscreen mode when appears      <maximized>true</maximized>     # 'horizontal', 'vertical' or boolean (yes/no)   </application>    # end of example -->   </applications> </openbox_config>

ok, i've determined focus assigned openbox, means ~/.config/openbox/lubuntu-rc.xml file posted above. have clue what's different between lubuntu-rc.xml in natty & oneiric, , between lubuntu-rc , lxde-rc.xml?

-- should compare lxde-rc.xml in crunchbang linux, matter.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [lubuntu] Launched apps don't get focus in oneiric


Ubuntu

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support