Remove x ≤ 1280 constraint on tooltip positions

Patch “xephem-4.1.0_tips_position.patch” from the mailing list.
This commit is contained in:
Lutz Mändle 2021-11-13 19:18:58 -05:00 committed by Brandon Rhodes
parent 00a554899b
commit a0ed773fe1
1 changed files with 0 additions and 3 deletions

View File

@ -45,7 +45,6 @@ static void tip_sort (void);
#define VOFFSET 15 /* dist from pointer to window top, pixels */
#define EDGE 10 /* min space to edge of screen */
#define TIPTO 1100 /* time to wait before raising tip, ms */
#define MAXDW 1280 /* max dsp width, beware large virtual roots */
static Tip *tips; /* all current tips -- w==0 when not in use */
static int ntips; /* total tips in tips[] */
@ -298,8 +297,6 @@ Tip *tp;
hei = oa.ascent + oa.descent + 2*GAP;
/* set position near pointer but never over it and beware screen edge */
if (dw > MAXDW)
dw = MAXDW;
XQueryPointer (dsp, win, &root, &child, &x, &y, &wx, &wy, &pqmask);
if (x + wid + 2*BW > dw-EDGE)
x = dw-EDGE - wid - 2*BW;