"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
Jonathan Marten writes:
> So I'd like to suggest some new built-in functions, to provide access
> to the desktop information:
You could use xlib package, available in xemacs packages. And here is
example how you could use it to access desktop information:
(let ((xdpy (XOpenDisplay (getenv "DISPLAY"))))
(unwind-protect
(XGetWindowProperty
xdpy (XDefaultRootWindow xdpy)
(XInternAtom xdpy "_NET_CURRENT_DESKTOP")
nil nil nil XA-cardinal)
(XCloseDisplay xdpy)))
same way you can fetch anything you want from X
[..]
By "built-in" do you mean in C? Have you looked at Zajcev
Evgeny's
xlib.el and xwem.el for how to do these things in Lisp? C should be
used only for things that require efficiency or linking to external
libraries, and nothing here seems to require either.
Feel free to post the patch whether it's in C or Lisp; we can't review
it without seeing it. If you think it's ready to be applied as-is,
send to xemacs-patches as well.
--
lg
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta