C Function to print window's pid

(to: janek cc: sawfish-list) Hi. Attached is the patch to print
window's pid.

void printWindowPID(int winId);
is declared extern, so you can call it from everywhere.

It works for live windows, but if you call it from error_handler() in
display.c, it segfaults at the call of Fget_x_property, leaving the
following message:

sawfish: xcb_xlib.c:41: xcb_xlib_lock: Assertion `!c->xlib.lock' failed.
rep: received fatal signal: Aborted
rep: received fatal signal: Segmentation fault

I can't solve this, since I don't know X.

Good luck!
Teika (Teika kazura)

Attachment: a.patch.bz2
Description: Binary data

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]