diff options
author | Yuuki Harano <masm+github@masm11.me> | 2021-02-20 18:00:36 +0900 |
---|---|---|
committer | Yuuki Harano <masm+github@masm11.me> | 2021-02-20 18:00:36 +0900 |
commit | be2e47362b0f933dbc8e300e3d168296b7e2aac4 (patch) | |
tree | 3b14e2e66d33566b81cb1d6e8bb04551d95dd2b9 /src/frame.h | |
parent | 949d3e50ec4ea7723bf14b93b66ad0b72f96f163 (diff) | |
parent | c85c8e7d42ae2a5fc95fa7b14257389d8383b34d (diff) | |
download | emacs-be2e47362b0f933dbc8e300e3d168296b7e2aac4.tar.gz |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/frame.h b/src/frame.h index 47ee6a832fb..bb05448cffb 100644 --- a/src/frame.h +++ b/src/frame.h @@ -1458,11 +1458,11 @@ INLINE int FRAME_INTERNAL_BORDER_WIDTH (struct frame *f) { #ifdef HAVE_WINDOW_SYSTEM - return FRAME_PARENT_FRAME(f) - ? (f->child_frame_border_width - ? FRAME_CHILD_FRAME_BORDER_WIDTH(f) - : frame_dimension (f->internal_border_width)) - : frame_dimension (f->internal_border_width); + return (FRAME_PARENT_FRAME(f) + ? (FRAME_CHILD_FRAME_BORDER_WIDTH(f) >= 0 + ? FRAME_CHILD_FRAME_BORDER_WIDTH(f) + : frame_dimension (f->internal_border_width)) + : frame_dimension (f->internal_border_width)); #else return frame_dimension (f->internal_border_width); #endif |