aboutsummaryrefslogtreecommitdiff
path: root/src/Shape.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-07-10 14:47:53 (GMT)
committerfluxgen <fluxgen>2003-07-10 14:47:53 (GMT)
commit6b36857d2196c4a3da8b91c9eeffb43e177ead7e (patch)
treefb3a5854a0ddb2bea560279a4302efb285a01eea /src/Shape.cc
parent55f4857ea97393996eb266f86e1c69030fef0dcf (diff)
downloadfluxbox-6b36857d2196c4a3da8b91c9eeffb43e177ead7e.zip
fluxbox-6b36857d2196c4a3da8b91c9eeffb43e177ead7e.tar.bz2
minor offset fix
Diffstat (limited to 'src/Shape.cc')
-rw-r--r--src/Shape.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Shape.cc b/src/Shape.cc
index c176e78..6ba9a6d 100644
--- a/src/Shape.cc
+++ b/src/Shape.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Shape.cc,v 1.1 2003/07/10 12:04:46 fluxgen Exp $ 22// $Id: Shape.cc,v 1.2 2003/07/10 14:47:53 fluxgen Exp $
23 23
24#include "Shape.hh" 24#include "Shape.hh"
25#include "FbWindow.hh" 25#include "FbWindow.hh"
@@ -47,7 +47,7 @@ Pixmap createShape(FbTk::FbWindow &win, int place) {
47 static char bottom_left_bits[] = { 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xfc, 0xf8, 0xc0 }; 47 static char bottom_left_bits[] = { 0xff, 0xff, 0xfe, 0xfe, 0xfe, 0xfc, 0xf8, 0xc0 };
48 static char bottom_right_bits[] = { 0xff, 0xff, 0x7f, 0x7f, 0x7f, 0x3f, 0x1f, 0x03 }; 48 static char bottom_right_bits[] = { 0xff, 0xff, 0x7f, 0x7f, 0x7f, 0x3f, 0x1f, 0x03 };
49 49
50 const int win_width = win.width() + 2*win.borderWidth(); 50 const int win_width = win.width() + 2*win.borderWidth() + 1;
51 const int win_height = win.height() + 2*win.borderWidth(); 51 const int win_height = win.height() + 2*win.borderWidth();
52 const int pixmap_width = min(8, win_width); 52 const int pixmap_width = min(8, win_width);
53 const int pixmap_height = min(8, win_height); 53 const int pixmap_height = min(8, win_height);
@@ -170,7 +170,7 @@ void Shape::update() {
170 XShapeCombineMask(FbTk::App::instance()->display(), 170 XShapeCombineMask(FbTk::App::instance()->display(),
171 m_win->window(), 171 m_win->window(),
172 ShapeBounding, 172 ShapeBounding,
173 -1, 0, 173 -2, 0,
174 m_shape, 174 m_shape,
175 ShapeSet); 175 ShapeSet);
176 176