Merge branch 'backport' into work
authorMikael Magnusson <mikachu@comhem.se>
Fri, 29 Feb 2008 03:21:02 +0000 (04:21 +0100)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 29 Feb 2008 03:21:02 +0000 (04:21 +0100)
Conflicts:

openbox/client.c
openbox/screen.c

1  2 
openbox/client.c
openbox/client_menu.c
openbox/focus_cycle.c
openbox/frame.c
openbox/openbox.c
openbox/screen.c

@@@ -4022,10 -4145,10 +4031,10 @@@ static void detect_edge(Rect area, ObDi
              g_assert_not_reached();
      }
  
 -    ob_debug("my head %d size %d\n", my_head, my_size);
 -    ob_debug("head %d tail %d dest %d\n", head, tail, *dest);
 +    ob_debug("my head %d size %d", my_head, my_size);
-     ob_debug("head %d tail %d deest %d", head, tail, *dest);
++    ob_debug("head %d tail %d dest %d", head, tail, *dest);
      if (!skip_head) {
 -        ob_debug("using near edge %d\n", head);
 +        ob_debug("using near edge %d", head);
          *dest = head;
          *near_edge = TRUE;
      }
Simple merge
@@@ -69,10 -70,9 +69,9 @@@ void focus_cycle_stop(ObClient *ifclien
  ObClient* focus_cycle(gboolean forward, gboolean all_desktops,
                        gboolean dock_windows, gboolean desktop_windows,
                        gboolean linear, gboolean interactive,
 -                      gboolean showbar, gboolean dialog,
 +                      gboolean showbar, ObFocusCyclePopupMode mode,
                        gboolean done, gboolean cancel)
  {
-     static ObClient *t = NULL;
      static GList *order = NULL;
      GList *it, *start, *list;
      ObClient *ft = NULL;
diff --cc openbox/frame.c
@@@ -98,15 -99,16 +98,15 @@@ ObFrame *frame_new(ObClient *client
      mask = 0;
      if (visual) {
          /* client has a 32-bit visual */
-         mask |= CWColormap | CWBackPixel | CWBorderPixel;
+         mask = CWColormap | CWBackPixel | CWBorderPixel;
          /* create a colormap with the visual */
          self->colormap = attrib.colormap =
 -            XCreateColormap(ob_display,
 -                            RootWindow(ob_display, ob_screen),
 +            XCreateColormap(obt_display, obt_root(ob_screen),
                              visual, AllocNone);
 -        attrib.background_pixel = BlackPixel(ob_display, ob_screen);
 -        attrib.border_pixel = BlackPixel(ob_display, ob_screen);
 +        attrib.background_pixel = BlackPixel(obt_display, ob_screen);
 +        attrib.border_pixel = BlackPixel(obt_display, ob_screen);
      }
 -    self->window = createWindow(RootWindow(ob_display, ob_screen), visual,
 +    self->window = createWindow(obt_root(ob_screen), visual,
                                  mask, &attrib);
  
      /* create the visible decor windows */
Simple merge
@@@ -327,14 -337,14 +327,14 @@@ static void screen_tell_ksplash(void
         hear it anyways. perhaps it is for old ksplash. or new ksplash. or
         something. oh well. */
      e.xclient.type = ClientMessage;
 -    e.xclient.display = ob_display;
 -    e.xclient.window = RootWindow(ob_display, ob_screen);
 +    e.xclient.display = obt_display;
 +    e.xclient.window = obt_root(ob_screen);
      e.xclient.message_type =
-         XInternAtom(obt_display, "_KDE_SPLASH_PROGRESS", False );
 -        XInternAtom(ob_display, "_KDE_SPLASH_PROGRESS", False);
++        XInternAtom(obt_display, "_KDE_SPLASH_PROGRESS", False);
      e.xclient.format = 8;
      strcpy(e.xclient.data.b, "wm started");
 -    XSendEvent(ob_display, RootWindow(ob_display, ob_screen),
 -               False, SubstructureNotifyMask, &e );
 +    XSendEvent(obt_display, obt_root(ob_screen),
 +               False, SubstructureNotifyMask, &e);
  }
  
  void screen_startup(gboolean reconfig)