all repos — fluxbox @ e1359adfd064d12bbf2bfb899ee99f07c2c7c712

custom fork of the fluxbox windowmanager

Cosmetic
Mathias Gumz akira@fluxbox.org
commit

e1359adfd064d12bbf2bfb899ee99f07c2c7c712

parent

017de68d5e5c5bc50c23f77e84abee7f05cf2985

5 files changed, 25 insertions(+), 24 deletions(-)

jump to
M NEWSNEWS

@@ -10,7 +10,7 @@ * _NET_REQUEST_FRAME_EXTENTS

* working autorepeat keys * working vertical rotated Tabs and Toolbar -Featuere: +Features: * The improved TypeAhead sytem is not limited to matches on beginning of menu items anymore, it matches everywhere. * Minor tweaks to the i18n system
M src/Resources.ccsrc/Resources.cc

@@ -26,17 +26,11 @@ #include "FbTk/Resource.hh"

#include "WinButton.hh" #include "fluxbox.hh" - #include "Layer.hh" -#include <stdio.h> #include <string> #include <vector> -#ifdef HAVE_CSTRING - #include <cstring> -#else - #include <string.h> -#endif +#include <cstring> using std::string; using std::vector;
M src/Screen.ccsrc/Screen.cc

@@ -1290,9 +1290,11 @@

} const std::string BScreen::windowMenuFilename() const { - if ((*resource.windowmenufile).empty()) - return Fluxbox::instance()->getDefaultDataFilename("windowmenu"); - return *resource.windowmenufile; + std::string name = *resource.windowmenufile; + if (name.empty()) { + name = Fluxbox::instance()->getDefaultDataFilename("windowmenu"); + } + return name; } void BScreen::rereadWindowMenu() {
M src/ScreenResource.ccsrc/ScreenResource.cc

@@ -79,9 +79,9 @@

-ScreenResource::ScreenResource(FbTk::ResourceManager &rm, - const std::string &scrname, - const std::string &altscrname): +ScreenResource::ScreenResource(FbTk::ResourceManager& rm, + const std::string& scrname, + const std::string& altscrname): opaque_move(rm, true, scrname + ".opaqueMove", altscrname+".OpaqueMove"), full_max(rm, false, scrname+".fullMaximization", altscrname+".FullMaximization"), max_ignore_inc(rm, true, scrname+".maxIgnoreIncrement", altscrname+".MaxIgnoreIncrement"),
M src/Window.ccsrc/Window.cc

@@ -299,7 +299,7 @@ return;

// add the window to the focus list // always add to front on startup to keep the focus order the same - if (m_focused || Fluxbox::instance()->isStartup()) + if (isFocused() || Fluxbox::instance()->isStartup()) screen().focusControl().addFocusWinFront(*this); else screen().focusControl().addFocusWinBack(*this);

@@ -599,8 +599,8 @@

delete old_win; } else { // client.fbwindow() == 0 - associateClient(client); + associateClient(client); moveResizeClient(client); // right now, this block only happens with new windows or on restart

@@ -2390,10 +2390,13 @@ m_last_resize_y = me.y_root;

// undraw rectangle before warping workspaces if (!screen().doOpaqueMove()) { - parent().drawRectangle(screen().rootTheme()->opGC(), - m_last_move_x, m_last_move_y, - frame().width() + 2*frame().window().borderWidth()-1, - frame().height() + 2*frame().window().borderWidth()-1); + int bw = static_cast<int>(frame().window().borderWidth()); + int w = static_cast<int>(frame().width()) + 2*bw -1; + int h = static_cast<int>(frame().height()) + 2*bw - 1; + if (w > 0 && h > 0) { + parent().drawRectangle(screen().rootTheme()->opGC(), + m_last_move_x, m_last_move_y, w, h); + } } if (moved_x && screen().isWorkspaceWarping()) {

@@ -2444,10 +2447,12 @@

// do not update display if another motion event is already pending if (!screen().doOpaqueMove()) { - parent().drawRectangle(screen().rootTheme()->opGC(), - dx, dy, - frame().width() + 2*frame().window().borderWidth()-1, - frame().height() + 2*frame().window().borderWidth()-1); + int bw = frame().window().borderWidth(); + int w = static_cast<int>(frame().width()) + 2*bw - 1; + int h = static_cast<int>(frame().height()) + 2*bw - 1; + if (w > 0 && h > 0) { + parent().drawRectangle(screen().rootTheme()->opGC(), dx, dy, w, h); + } m_last_move_x = dx; m_last_move_y = dy; } else {