metacity 2.8.2 focus new windows

Franz Klammer klammer at webonaut.com
Fri Aug 6 08:17:14 PDT 2004


James Earl wrote:
> Hi,
> 
> I seem to be having some problems with metacity 2.8.2.  Basically when I
> start a new application from anywhere, it doesn't receive focus and is
> started underneith existing windows.  I believe I first noticed the
> problem after upgrading to metacity 2.8.2.
> 
> Has anyone else experienced this, or is this just an upgrade issue?
> 
> Just thought I'd check quick before I start deleting stuff in my home
> directory.
> 

i've played arround a little bit and found (at last for me) the patch
as temporary solution until there is a real fix:

--- src/display.c.orig      Mon Aug  2 21:23:03 2004
+++ src/display.c   Fri Aug  6 17:11:27 2004
@@ -1867,6 +1867,8 @@
          {
            window = meta_window_new (display, event->xmaprequest.window,
                                      FALSE);
+         meta_window_focus (window, meta_display_get_current_time (window->display));
+         meta_window_make_above(window);
          }
        /* if frame was receiver it's some malicious send event or something */
        else if (!frame_was_receiver && window)

maybe it only a quick and dirty hack - but it seems to work.

franz.


More information about the freebsd-gnome mailing list