all repos — fluxbox @ 9858833a574f203afab265e5eb1ace42d4a8766d

custom fork of the fluxbox windowmanager

minor cleaning
fluxgen fluxgen
commit

9858833a574f203afab265e5eb1ace42d4a8766d

parent

14e9c6f80a4600a0d51134b321aa0c7779ebd7da

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

jump to
M src/Workspace.ccsrc/Workspace.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: Workspace.cc,v 1.78 2003/07/28 15:06:35 rathnor Exp $ +// $Id: Workspace.cc,v 1.79 2003/08/04 16:28:10 fluxgen Exp $ #include "Workspace.hh"

@@ -37,8 +37,8 @@ #include "FbWinFrame.hh"

#include "MenuItem.hh" // use GNU extensions -#ifndef _GNU_SOURCE -#define _GNU_SOURCE +#ifndef _GNU_SOURCE +#define _GNU_SOURCE #endif // _GNU_SOURCE #ifdef HAVE_CONFIG_H

@@ -409,8 +409,7 @@ m_name = name;

} else { //if name == 0 then set default name from nls char tname[128]; sprintf(tname, I18n::instance()-> - getMessage( - FBNLS::WorkspaceSet, + getMessage(FBNLS::WorkspaceSet, FBNLS::WorkspaceDefaultNameFormat, "Workspace %d"), m_id + 1); //m_id starts at 0 m_name = tname;

@@ -551,7 +550,7 @@ next_y = head_left;

while (!placed && (left_right ? test_x + win_w < head_right - : test_x > head_left)) { + : test_x > head_left)) { placed = true;

@@ -626,7 +625,7 @@ test_x = head_right - win_w;

while (!placed && (left_right ? test_x + win_w < head_right - : test_x > head_left)) { + : test_x > head_left)) { if (left_right) next_x = head_right; // it will get shrunk