all repos — fluxbox @ ca99e775f48774df9d021ff59acb9312aba7e223

custom fork of the fluxbox windowmanager

closes bug 977054
akir akir
commit

ca99e775f48774df9d021ff59acb9312aba7e223

parent

dc762a7c4df89213487b8c255f0db6fdb7230e1f

2 files changed, 12 insertions(+), 9 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,8 +1,8 @@

(Format: Year/Month/Day) Changes for 0.9.10: *04/08/30: - * Close bug #1013735, #1012314 (Mathias) - Screen.cc Slit.cc + * Close bug #1013735, #1012314, #977054 (Mathias) + Screen.cc Slit.cc FbCommands.cc * Fix bug in menu-closing with keys (Mathias) FbTk/Menu.cc *04/08/29:
M src/FbCommands.ccsrc/FbCommands.cc

@@ -19,7 +19,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: FbCommands.cc,v 1.25 2004/07/19 13:52:15 fluxgen Exp $ +// $Id: FbCommands.cc,v 1.26 2004/08/30 12:19:52 akir Exp $ #include "FbCommands.hh" #include "fluxbox.hh"

@@ -123,7 +123,8 @@ FbTk::ThemeManager::instance().load(m_filename);

} void ShowRootMenuCmd::execute() { - BScreen *screen = Fluxbox::instance()->mouseScreen(); + Fluxbox *fb = Fluxbox::instance(); + BScreen *screen = fb->mouseScreen(); if (screen == 0) return;

@@ -134,7 +135,7 @@ int rx, ry;

int wx, wy; unsigned int mask; - if (XQueryPointer(FbTk::App::instance()->display(), + if (XQueryPointer(fb->display(), screen->rootWindow().window(), &root_ret, &window_ret, &rx, &ry, &wx, &wy, &mask) ) {

@@ -142,19 +143,20 @@ if ( rx - (screen->getRootmenu().width()/2) > 0 )

rx-= screen->getRootmenu().width()/2; screen->getRootmenu().move(rx, ry); } - + fb->checkMenu(); screen->getRootmenu().show(); screen->getRootmenu().grabInputFocus(); } void ShowWorkspaceMenuCmd::execute() { - BScreen *screen = Fluxbox::instance()->mouseScreen(); + + Fluxbox *fb = Fluxbox::instance(); + BScreen *screen = fb->mouseScreen(); if (screen == 0) return; - Window root_ret; Window window_ret;

@@ -162,7 +164,7 @@ int rx, ry;

int wx, wy; unsigned int mask; - if ( XQueryPointer(FbTk::App::instance()->display(), + if ( XQueryPointer(fb->display(), screen->rootWindow().window(), &root_ret, &window_ret, &rx, &ry, &wx, &wy, &mask) ) {

@@ -170,6 +172,7 @@ if ( rx - (screen->getWorkspacemenu().width()/2) > 0 )

rx-= screen->getWorkspacemenu().width()/2; screen->getWorkspacemenu().move(rx, ry); } + fb->checkMenu(); screen->getWorkspacemenu().show(); screen->getWorkspacemenu().grabInputFocus();