diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2019-05-17 20:37:55 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2019-05-17 20:37:55 (GMT) |
commit | 4cf556bad993387c7fdaeba18de58e3aaa4feb37 (patch) | |
tree | e728f8c794ee592866f3e4699d630593ceb18b2f /generic/tkFrame.c | |
parent | f061c0843dad7942ffc447af8abc5b3d36e53a02 (diff) | |
download | tk-4cf556bad993387c7fdaeba18de58e3aaa4feb37.zip tk-4cf556bad993387c7fdaeba18de58e3aaa4feb37.tar.gz tk-4cf556bad993387c7fdaeba18de58e3aaa4feb37.tar.bz2 |
Ugh; misread the code. The highlight ring is drawn first and always on the real window. Because of backgroundless frames.
Diffstat (limited to 'generic/tkFrame.c')
-rw-r--r-- | generic/tkFrame.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkFrame.c b/generic/tkFrame.c index d994cc2..9298655 100644 --- a/generic/tkFrame.c +++ b/generic/tkFrame.c @@ -1671,9 +1671,11 @@ DisplayFrame( * free up the pixmap. */ - XCopyArea(framePtr->display, pixmap, Tk_WindowId(tkwin), framePtr->copyGC, - 0, 0, (unsigned) Tk_Width(tkwin), (unsigned) Tk_Height(tkwin), - 0, 0); + XCopyArea(framePtr->display, pixmap, Tk_WindowId(tkwin), + framePtr->copyGC, hlWidth, hlWidth, + (unsigned) (Tk_Width(tkwin) - 2 * hlWidth), + (unsigned) (Tk_Height(tkwin) - 2 * hlWidth), + hlWidth, hlWidth); Tk_FreePixmap(framePtr->display, pixmap); #endif /* TK_NO_DOUBLE_BUFFERING */ } |