There I can call, but all the time I'm getting exactly 2 NSWindows which have nothing in common with real applications' windows. I wrote a SIMBL plug-in which intrudes into X11.app process. I know, to manipulate windows on Mac I must be in the same process, i.e. I mean a native Quartz window, which appeared as a result of X11 emulating some application. I need to host an additional NSView (or just draw something) upon such a window. But it does not support Accessibility API, so there's no way to control it (except, maybe Core Graphichs private functions from the same process). While running, X11 somehow creates a native Quartz window to represent this emulated application, and this window is accessible via Quartz Window Services so that I can get its CSWindowID, title, position, size and owner's PID (PID of X11.app). There's a simple X11-emulated application on Mac (like xterm, xeyes and so on) with one window. Dedicated to all who likes low-level Window Server (CoreGraphicsPrivate.h, etc), X11 on Mac, SIMBL and other crazy stuff :)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |