all repos — fluxbox @ 3999aded8c6b7f4efa758750d031cf5ef283ce7d

custom fork of the fluxbox windowmanager

cleaning
fluxgen fluxgen
commit

3999aded8c6b7f4efa758750d031cf5ef283ce7d

parent

0c8e6164920107bc612015269a50aed17f0feeae

2 files changed, 37 insertions(+), 36 deletions(-)

jump to
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.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 @@ BScreen *screen = Fluxbox::instance()->mouseScreen();

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 @@ BScreen *screen = Fluxbox::instance()->mouseScreen();

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() {
M src/Remember.ccsrc/Remember.cc

@@ -21,18 +21,21 @@ // 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: 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 <X11/Xlib.h>