(using PCB 20050609; I realize this may be moot in light of DJ's GUI
rewrite, but just in case...)

I noticed that the following piece of code prevents the PCB Library
window from working on OS X 10.4 (using Apple's X server in rootless
mode):

        /* If focus were grabbed, output drawing area would loose it which we
        |  don't want.
        */
        gtk_widget_realize(library_window);
-->     gdk_window_set_accept_focus(library_window->window, FALSE);
        gtk_widget_show_all(library_window);
        }

The OS X GUI is click-to-focus, and most of the time, it also discards
the first click on a window (before the window has focus). Evidently,
the quartz-wm window manager is preventing clicks from getting through
to the PCB Library window because it is set to not accept focus. The
upshot is that you cannot add new parts from the library window.

Why is it bad if the "output drawing area" (I assume this is in the
main window) loses focus? Is this just to save the user from hitting
Alt-Tab? Is there a way to let the window be brought to the
foreground, but not accept keyboard focus?

--
- Charles Lepple

Reply via email to