← easystroke

Tweak debugging info

2022a080a94d9d2ecacb43b59839bb40375791fb · Thomas Jaeger · Jul 28, 2011 00:57

+2 −2 · 1 file changed

  • main.cc +2 −2
diff --git a/main.cc b/main.cc
index e16b3b8..1e2bbc3 100644
--- a/main.cc
+++ b/main.cc
@@ -1242,10 +1242,10 @@ void Main::handle_enter_leave(XEvent &ev) {
 		return;
 	Window w = ev.xcrossing.window;
 	if (ev.type == EnterNotify) {
-		current_window.set(w);
-		current_app = get_app_window(w);
 		if (verbosity >= 3)
 			printf("Entered window 0x%lx -> 0x%lx\n", w, current_app);
+		current_window.set(w);
+		current_app = get_app_window(w);
 	} else if (ev.type == LeaveNotify) {
 		if (ev.xcrossing.window != current_window.get())
 			return;