On Sat, 13 Apr 2013, Christoph Lohmann wrote:
> Greetings.
>
> On Sat, 13 Apr 2013 09:44:47 +0200 Mark Hills <mark_AT_xwax.org> wrote:
> > I find when a window is un-focused that the cursor location looks too
> > much like display content.
> >
> > Please consider this patch, which mimics xterm behaviour by displaying
> > a hollow rectangle, and makes a saving of one colourmap entry :)
>
> I have applied your patch using the Xft routines. It looks a bit more
> ugly to draw a simple rectangle, but it works.
>
> Please try the latest st out and see if this fits to your needs.
Thanks, I tried it and it looks the same. I'll continue to test.
I can see why it's good to use one API throughout, but I was not aware
that Xft was intended for anything but fonts -- it doesn't seem suckless
to have to trick it into drawing a rectangle like this.
More generally (st and beyond) I'm interested in why there is a push to
deprecate use of functions like XDrawRectangle when there does not seem to
be adequate replacement; I can't see an alternative in XRender or Xft
without (presumably) more chatter with the server. I also did some tests
(admittedly behind QT) and could not get comparable performance from
XRender.
Thanks for the update,
--
Mark
Received on Sun Apr 14 2013 - 19:38:35 CEST