On 11 May 2011 12:39, Connor Lane Smith <[email protected]> wrote:
> Hey Rob,
>
> I think this was caused by the given '-m' not being present. I've
> applied a patch which should fix this, since it falls back to the
> mouse if the '-m' isn't there. Could you confirm whether it works?
>
> If it doesn't it's a weird corner case (which must have existed prior
> to this patch), and we'll have to just fall back to the last monitor
> like you suggested.
>
> Thanks,
> cls

Hi again,

No joy, I'm afraid, m is -1 when the for loop finishes.
I believe the problem is with XGetWindowAttributes, can't figure it out
though, I've attached a log if anyone's interested, but for now I'll
just settle for using dmenu without the patch.
There's no problem with dmenu tip, it works fine whatever's focussed.

Cheers,
Rob.
[1][dmenu]% sleep 2; echo hi | ./dmenu
XGetWindowAttributes(dc->dpy, dw, fwa = { x=-1, y=-1, w=1, h=1 })
XTranslateCoordinates(dc->dpy, dw, fwa.root, fwa.x=-1, fwa.y=-1, x=-2, y=13, chi=0);
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x0
  Serial number of failed request:  65
  Current serial number in output stream:  66

[1][dmenu]% sleep 2; echo hi | ./dmenu
XGetWindowAttributes(dc->dpy, dw, fwa = { x=-1, y=-1, w=1, h=1 })
XTranslateCoordinates(dc->dpy, dw, fwa.root, fwa.x=-1, fwa.y=-1, x=-2, y=13, chi=0);
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  1 (X_CreateWindow)
  Value in failed request:  0x0
  Serial number of failed request:  65
  Current serial number in output stream:  66

Reply via email to