On Thu, 10 Jan 2002 10:15:22 +0100
Tomas Capdevila <[EMAIL PROTECTED]> wrote:

> Wilbert Berendsen wrote:
> 
> > One little thingy: Is there really any reason to place windows
> > 'edgeSnapThreshold' pixels from the border in Workspace.cc? I use an
> > edgesnapthreshold of 10 but don't like new windows appear always 10
> > pixels away from the screen edges. Anyway, it's a very small patch
> > that I always can use myself :)
> 
> hello wilbert,
> 
> if you have the time, could you explain me maybe how i can patch a
> blackbox-0.61.1 with your patch? 

Patch for 0.61.1 attached!  Note that this is a totally different one than
the one for 0.62.0preX. Use:

cd blackbox-0.61.1/
patch -p1 < ../blackbox-0.61.1-nogap.patch

enjoy!
diff -r -U 3 blackbox-0.61.0-orig/src/Workspace.cc blackbox-0.61.0/src/Workspace.cc
--- blackbox-0.61.0-orig/src/Workspace.cc       Wed May 31 19:42:49 2000
+++ blackbox-0.61.0/src/Workspace.cc    Fri Sep 29 13:57:41 2000
@@ -371,14 +371,14 @@
 
   switch (screen->getPlacementPolicy()) {
   case BScreen::RowSmartPlacement: {
-    test_y = screen->getBorderWidth() + screen->getEdgeSnapThreshold();
+    test_y = screen->getBorderWidth();// + screen->getEdgeSnapThreshold();
     if (screen->getColPlacementDirection() == BScreen::BottomTop)
       test_y = screen->getHeight() - win_h - test_y;
 
     while (((screen->getColPlacementDirection() == BScreen::BottomTop) ?
            test_y > 0 :    test_y + win_h < (signed) screen->getHeight()) &&
           ! placed) {
-      test_x = screen->getBorderWidth() + screen->getEdgeSnapThreshold();
+      test_x = screen->getBorderWidth();// + screen->getEdgeSnapThreshold();
       if (screen->getRowPlacementDirection() == BScreen::RightLeft)
        test_x = screen->getWidth() - win_w - test_x;
 
@@ -433,14 +433,14 @@
     break; }
 
   case BScreen::ColSmartPlacement: {
-    test_x = screen->getBorderWidth() + screen->getEdgeSnapThreshold();
+    test_x = screen->getBorderWidth();// + screen->getEdgeSnapThreshold();
     if (screen->getRowPlacementDirection() == BScreen::RightLeft)
       test_x = screen->getWidth() - win_w - test_x;
 
     while (((screen->getRowPlacementDirection() == BScreen::RightLeft) ?
            test_x > 0 : test_x + win_w < (signed) screen->getWidth()) &&
           ! placed) {
-      test_y = screen->getBorderWidth() + screen->getEdgeSnapThreshold();
+      test_y = screen->getBorderWidth();// + screen->getEdgeSnapThreshold();
       if (screen->getColPlacementDirection() == BScreen::BottomTop)
        test_y = screen->getHeight() - win_h - test_y;

Reply via email to