From dbd1d6ece0e910eca249cd4eeee95439d3f6b97b Mon Sep 17 00:00:00 2001 From: bakkeby Date: Mon, 29 Mar 2021 10:27:10 +0200 Subject: [PATCH] Addressing relativeborder plus ligatures combo conflict --- st.h | 5 +---- x.c | 7 +++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/st.h b/st.h index 2f853ea..345a257 100644 --- a/st.h +++ b/st.h @@ -311,9 +311,6 @@ void boxdraw_xinit(Display *, Colormap, XftDraw *, Visual *); void drawboxes(int, int, int, int, XftColor *, XftColor *, const XftGlyphFontSpec *, int); #endif // XFT_VERSION #endif // BOXDRAW_PATCH -#if RELATIVEBORDER_PATCH -int borderpx; -#endif // RELATIVEBORDER_PATCH /* config.h globals */ extern char *utmp; @@ -339,4 +336,4 @@ extern DC dc; extern XWindow xw; extern XSelection xsel; extern TermWindow win; -extern Term term; \ No newline at end of file +extern Term term; diff --git a/x.c b/x.c index fdd16a5..d0802cb 100644 --- a/x.c +++ b/x.c @@ -189,6 +189,9 @@ static int oldbutton = 3; /* button event on startup: 3 = release */ #if VISUALBELL_1_PATCH static int bellon = 0; /* visual bell status */ #endif // VISUALBELL_1_PATCH +#if RELATIVEBORDER_PATCH +int borderpx; +#endif // RELATIVEBORDER_PATCH #include "patch/x_include.c" @@ -1999,10 +2002,6 @@ xfinishdraw(void) GC gc; #endif // SIXEL_PATCH - #if VISUALBELL_3_PATCH - if (vbellmode == 3 && win.vbellset) - xdrawvbell(); - #endif // VISUALBELL_3_PATCH #if !SINGLE_DRAWABLE_BUFFER_PATCH XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, 0, 0, win.w, win.h, 0, 0);