aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-05-14 13:44:31 (GMT)
committerrathnor <rathnor>2004-05-14 13:44:31 (GMT)
commit36a848c4a54bfd7f6b7daa345f14fe0dd332468f (patch)
tree2af135f4c4bd2eaffaa3b41ea21d6a576716cc21 /src
parent9069ae0d80c278fcba837d50f75a49f18ea44c15 (diff)
downloadfluxbox-36a848c4a54bfd7f6b7daa345f14fe0dd332468f.zip
fluxbox-36a848c4a54bfd7f6b7daa345f14fe0dd332468f.tar.bz2
tweak the X in the close button. It was uneven. Check the comment
for details, I suspect it depends on X version :-/
Diffstat (limited to 'src')
-rw-r--r--src/WinButton.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc
index 7020bad..14a202c 100644
--- a/src/WinButton.cc
+++ b/src/WinButton.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: WinButton.cc,v 1.19 2004/02/27 13:25:18 fluxgen Exp $ 22/// $Id: WinButton.cc,v 1.20 2004/05/14 13:44:31 rathnor Exp $
23 23
24#include "WinButton.hh" 24#include "WinButton.hh"
25#include "App.hh" 25#include "App.hh"
@@ -231,15 +231,22 @@ void WinButton::drawType(bool clear, bool no_trans) {
231 231
232 drawLine(gc(), 232 drawLine(gc(),
233 2, 2, 233 2, 2,
234 width() - 2, height() - 2); 234 width() - 3, height() - 3);
235 // I can't figure out why this second one needs a y offset of 1????? 235 // I can't figure out why this second one needs a y offset of 1?????
236 // but it does - at least on my box: 236 // but it does - at least on my box:
237 // XFree86 Version 4.2.1.1 (Debian 4.2.1-12.1 20031003005825) 237 // XFree86 Version 4.2.1.1 (Debian 4.2.1-12.1 20031003005825)
238 // (protocol Version 11, revision 0, vendor release 6600) 238 // (protocol Version 11, revision 0, vendor release 6600)
239 // But not on mine? It's wonky. Put back to the same coords.
240 // was width-2, 1 in the second drawline
241 // Perhaps some X versions don't draw the endpoint?
242 // Mine:
243 // XFree86 Version 4.3.0.1 (Debian 4.3.0.dfsg.1-1 20040428170728)
244 // (X Protocol Version 11, Revision 0, Release 6.6)
245
239 246
240 drawLine(gc(), 247 drawLine(gc(),
241 2, height() - 3, 248 2, height() - 3,
242 width() - 2, 1); 249 width() - 3, 2);
243 } 250 }
244 break; 251 break;
245 case SHADE: 252 case SHADE: