all repos — fluxbox @ 601ae51604441e9b2d6ffea72f9336cc02934a99

custom fork of the fluxbox windowmanager

resource bool fix and setting input focus on menus when we bring them up with the mouse
fluxgen fluxgen
commit

601ae51604441e9b2d6ffea72f9336cc02934a99

parent

38bd7f47d929fab76b55ea4e6a479eda981d3603

1 files changed, 4 insertions(+), 7 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.247 2004/07/15 13:42:50 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.248 2004/07/15 18:23:03 fluxgen Exp $ #include "fluxbox.hh"

@@ -159,13 +159,8 @@

template<> void FbTk::Resource<bool>:: setFromString(char const *strval) { - if (strcasecmp(strval, "true")==0) - *this = true; - else - *this = false; + *this = (bool)!strcasecmp(strval, "true"); } - - template<> void FbTk::Resource<Fluxbox::TitlebarList>::

@@ -1117,6 +1112,7 @@

if (! screen->getWorkspacemenu().isVisible()) { screen->getWorkspacemenu().removeParent(); screen->getWorkspacemenu().show(); + screen->getWorkspacemenu().grabInputFocus(); } } else if (be.button == 3) { //calculate placement of root menu

@@ -1147,6 +1143,7 @@

if (! screen->getRootmenu().isVisible()) { checkMenu(); screen->getRootmenu().show(); + screen->getRootmenu().grabInputFocus(); } } else if (screen->isDesktopWheeling() && be.button == 4) { screen->nextWorkspace(1);