From 3999aded8c6b7f4efa758750d031cf5ef283ce7d Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 19 Dec 2003 00:48:41 +0000 Subject: cleaning --- src/FbCommands.cc | 62 +++++++++++++++++++++++++++---------------------------- src/Remember.cc | 11 ++++++---- 2 files changed, 37 insertions(+), 36 deletions(-) diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 7372b6a..1bec59a 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.18 2003/12/03 22:13:21 fluxgen Exp $ +// $Id: FbCommands.cc,v 1.19 2003/12/19 00:47:30 fluxgen Exp $ #include "FbCommands.hh" #include "fluxbox.hh" @@ -115,27 +115,25 @@ void ShowRootMenuCmd::execute() { if (screen == 0) return; - if (screen->getRootmenu()) { + Window root_ret; + Window window_ret; - Window root_ret; - Window window_ret; + int rx, ry; + int wx, wy; + unsigned int mask; - int rx, ry; - int wx, wy; - unsigned int mask; + if ( XQueryPointer(FbTk::App::instance()->display(), + screen->rootWindow().window(), &root_ret, &window_ret, + &rx, &ry, &wx, &wy, &mask) ) { - if ( XQueryPointer(FbTk::App::instance()->display(), - screen->rootWindow().window(), &root_ret, &window_ret, - &rx, &ry, &wx, &wy, &mask) ) { + if ( rx - (screen->getRootmenu().width()/2) > 0 ) + rx-= screen->getRootmenu().width()/2; + screen->getRootmenu().move(rx, ry); + } - if ( rx - (screen->getRootmenu()->width()/2) > 0 ) - rx-= screen->getRootmenu()->width()/2; - screen->getRootmenu()->move(rx, ry); - } + screen->getRootmenu().show(); + screen->getRootmenu().grabInputFocus(); - screen->getRootmenu()->show(); - screen->getRootmenu()->grabInputFocus(); - } } void ShowWorkspaceMenuCmd::execute() { @@ -143,26 +141,26 @@ void ShowWorkspaceMenuCmd::execute() { if (screen == 0) return; - if (screen->getWorkspacemenu()) { + - Window root_ret; - Window window_ret; + Window root_ret; + Window window_ret; - int rx, ry; - int wx, wy; - unsigned int mask; + int rx, ry; + int wx, wy; + unsigned int mask; - if ( XQueryPointer(FbTk::App::instance()->display(), - screen->rootWindow().window(), &root_ret, &window_ret, - &rx, &ry, &wx, &wy, &mask) ) { + if ( XQueryPointer(FbTk::App::instance()->display(), + screen->rootWindow().window(), &root_ret, &window_ret, + &rx, &ry, &wx, &wy, &mask) ) { - if ( rx - (screen->getWorkspacemenu()->width()/2) > 0 ) - rx-= screen->getWorkspacemenu()->width()/2; - screen->getWorkspacemenu()->move(rx, ry); - } - screen->getWorkspacemenu()->show(); - screen->getWorkspacemenu()->grabInputFocus(); + if ( rx - (screen->getWorkspacemenu().width()/2) > 0 ) + rx-= screen->getWorkspacemenu().width()/2; + screen->getWorkspacemenu().move(rx, ry); } + screen->getWorkspacemenu().show(); + screen->getWorkspacemenu().grabInputFocus(); + } void SetWorkspaceNameCmd::execute() { diff --git a/src/Remember.cc b/src/Remember.cc index 43647a0..fef995b 100644 --- a/src/Remember.cc +++ b/src/Remember.cc @@ -21,18 +21,21 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Remember.cc,v 1.32 2003/12/11 15:23:14 fluxgen Exp $ +// $Id: Remember.cc,v 1.33 2003/12/19 00:48:41 fluxgen Exp $ #include "Remember.hh" #include "ClientPattern.hh" -#include "StringUtil.hh" #include "Screen.hh" #include "Window.hh" #include "WinClient.hh" #include "FbMenu.hh" -#include "MenuItem.hh" -#include "App.hh" #include "FbCommands.hh" +#include "fluxbox.hh" + +#include "FbTk/StringUtil.hh" +#include "FbTk/MenuItem.hh" +#include "FbTk/App.hh" + #include -- cgit v0.11.2