]> Dogcows Code - chaz/openbox/commitdiff
Merge branch 'backport' into work
authorMikael Magnusson <mikachu@gmail.com>
Wed, 29 Oct 2008 12:48:03 +0000 (13:48 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Wed, 29 Oct 2008 12:48:34 +0000 (13:48 +0100)
1  2 
openbox/actions/desktop.c
openbox/client.c

Simple merge
index ab00cd0d6cfb3eb21f018f3e8cf60fced8269de2,d6321949a1dee2a0f1c2912c604d269550c2d295..5686a93969b979f321b8f086b20f566fbf7979bb
@@@ -202,8 -247,44 +202,9 @@@ void client_manage(Window window, ObPro
      gboolean transient = FALSE;
      Rect place, *monitor;
      Time launch_time, map_time;
+     gint user_time;
  
 -    grab_server(TRUE);
 -
 -    /* check if it has already been unmapped by the time we started
 -       mapping. the grab does a sync so we don't have to here */
 -    if (XCheckTypedWindowEvent(ob_display, window, DestroyNotify, &e) ||
 -        XCheckTypedWindowEvent(ob_display, window, UnmapNotify, &e))
 -    {
 -        XPutBackEvent(ob_display, &e);
 -
 -        ob_debug("Trying to manage unmapped window. Aborting that.\n");
 -        grab_server(FALSE);
 -        return; /* don't manage it */
 -    }
 -
 -    /* make sure it isn't an override-redirect window */
 -    if (!XGetWindowAttributes(ob_display, window, &attrib) ||
 -        attrib.override_redirect)
 -    {
 -        grab_server(FALSE);
 -        return; /* don't manage it */
 -    }
 -
 -    /* is the window a docking app */
 -    if ((wmhint = XGetWMHints(ob_display, window))) {
 -        if ((wmhint->flags & StateHint) &&
 -            wmhint->initial_state == WithdrawnState)
 -        {
 -            dock_add(window, wmhint);
 -            grab_server(FALSE);
 -            XFree(wmhint);
 -            return;
 -        }
 -        XFree(wmhint);
 -    }
 -
 -    ob_debug("Managing window: 0x%lx\n", window);
 +    ob_debug("Managing window: 0x%lx", window);
  
      map_time = event_get_server_time();
  
      /* tell startup notification that this app started */
      launch_time = sn_app_started(self->startup_id, self->class, self->name);
  
 -    if (!PROP_GET32(self->window, net_wm_user_time, cardinal, &user_time))
++    if (!OBT_PROP_GET32(self->window, NET_WM_USER_TIME, CARDINAL, &user_time))
+         user_time = map_time;
      /* do this after we have a frame.. it uses the frame to help determine the
         WM_STATE to apply. */
      client_change_state(self);
This page took 0.033343 seconds and 4 git commands to generate.