]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
fix focus when starting up, especially when replacing another instance of openbox
[chaz/openbox] / openbox / openbox.c
index 4703d7d6eb921632f203416eda9ead477f689a17..fb43b9789164bc7009f3c2c8f982c2b91108c350 100644 (file)
@@ -213,6 +213,11 @@ gint main(gint argc, gchar **argv)
                                                XC_top_left_corner);
 
     if (screen_annex()) { /* it will be ours! */
+
+        /* get a timestamp from after taking over as the WM.  if we use the
+           old timestamp to set focus it can fail when replacing another WM. */
+        event_reset_time();
+
         do {
             ObPrompt *xmlprompt = NULL;
 
@@ -317,7 +322,6 @@ gint main(gint argc, gchar **argv)
 
                 /* get all the existing windows */
                 window_manage_all();
-                focus_nothing();
 
                 /* focus what was focused if a wm was already running */
                 if (OBT_PROP_GET32(obt_root(ob_screen),
This page took 0.024629 seconds and 4 git commands to generate.