]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
this is a big one! im putting stats in here just cuz!
[chaz/openbox] / openbox / focus.c
index ebe93a76acc2cc651fa1cdf7c79186d517dc0fb1..de98d63bacea38b3667f9e2177dd8e6d8ebab500 100644 (file)
@@ -10,7 +10,6 @@
 #include "prop.h"
 #include "dispatch.h"
 #include "focus.h"
-#include "parse.h"
 #include "stacking.h"
 #include "popup.h"
 
@@ -81,6 +80,10 @@ void focus_set_client(Client *client)
     Window active;
     Client *old;
 
+#ifdef DEBUG_FOCUS
+    g_message("focus_set_client 0x%lx", client ? client->window : 0);
+#endif
+
     /* uninstall the old colormap, and install the new one */
     screen_install_colormap(focus_client, FALSE);
     screen_install_colormap(client, TRUE);
@@ -219,7 +222,8 @@ void focus_fallback(FallbackType type)
         if (type != Fallback_Unfocusing || it->data != old)
             if (client_normal(it->data) &&
                 /* dont fall back to 'anonymous' fullscreen windows. theres no
-                   checks for this is in transient/group fallbacks. */
+                   checks for this is in transient/group fallbacks, so they can
+                   be fallback targets there. */
                 !((Client*)it->data)->fullscreen &&
                 client_focus(it->data))
                 return;
@@ -265,7 +269,6 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done,
     Client *ft;
 
     if (cancel) {
-        /*if (first) client_focus(first); XXX*/
         if (focus_cycle_target)
             frame_adjust_focus(focus_cycle_target->frame, FALSE);
         if (focus_client)
This page took 0.021384 seconds and 4 git commands to generate.