aboutsummaryrefslogtreecommitdiffstats
path: root/x.c
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-09-27 19:51:34 +0200
committerjoe <rbo@gmx.us>2025-09-27 19:51:34 +0200
commit14101eefa260ec23f09ac961a3bed6a32932b9c3 (patch)
treeeaee1618fb9cd17fd13bb1df5378b778d1a84d2f /x.c
parentpatch (diff)
downloadst-14101eefa260ec23f09ac961a3bed6a32932b9c3.tar.gz
st-14101eefa260ec23f09ac961a3bed6a32932b9c3.tar.bz2
st-14101eefa260ec23f09ac961a3bed6a32932b9c3.tar.xz
st-14101eefa260ec23f09ac961a3bed6a32932b9c3.tar.zst
st-14101eefa260ec23f09ac961a3bed6a32932b9c3.zip
up
Diffstat (limited to 'x.c')
-rw-r--r--x.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/x.c b/x.c
index fa4375d..d67cb7a 100644
--- a/x.c
+++ b/x.c
@@ -34,6 +34,7 @@ typedef struct {
void (*func)(const Arg *);
const Arg arg;
uint release;
+ int altscrn; /* 0: don't care, -1: not alt screen, 1: alt screen */
} MouseShortcut;
typedef struct {
@@ -459,6 +460,7 @@ mouseaction(XEvent *e, uint release)
for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) {
if (ms->release == release &&
ms->button == e->xbutton.button &&
+ (!ms->altscrn || (ms->altscrn == (tisaltscr() ? 1 : -1))) &&
(match(ms->mod, state) || /* exact or forced */
match(ms->mod, state & ~forcemousemod))) {
ms->func(&(ms->arg));
@@ -1597,7 +1599,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og)
break;
}
} else {
- XftDrawRect(xw.draw, &drawcol,
+ /* XftDrawRect(xw.draw, &drawcol,
borderpx + cx * win.cw,
borderpx + cy * win.ch,
win.cw - 1, 1);
@@ -1612,7 +1614,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og)
XftDrawRect(xw.draw, &drawcol,
borderpx + cx * win.cw,
borderpx + (cy + 1) * win.ch - 1,
- win.cw, 1);
+ win.cw, 1); */
}
}