summaryrefslogtreecommitdiffstats
path: root/x11/stalonetray/files/patch-src-main.c
blob: 9e42af7a9745c7753885ca005025d233efb570b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- src/main.c.orig	Thu Jul 13 19:06:09 2006
+++ src/main.c	Thu Jul 13 19:07:23 2006
@@ -131,7 +131,9 @@
 			tray_data.xsh.width, tray_data.xsh.height,
 			tray_data.xsh.x, tray_data.xsh.y));
 
+#ifdef DEBUG
 	forall_icons(&print_icon_data);	
+#endif
 	DBG(3, ("===================================\n"));
 	trace_mode = 0;
 }
@@ -455,16 +457,20 @@
 					unlayout_icon(ti); /* or hide ? */
 					return;
 				}
+#ifdef DEBUG
 				print_icon_data(ti);
+#endif
 				update_positions();
 				tray_set_constraints();
 				DBG(4, ("icon position were updated\n"));
 			} else {
 				hide_window(ti);
 			}
+#ifdef DEBUG
 			DBG(4, ("====================\n"));
 			forall_icons(&print_icon_data);
 			DBG(4, ("====================\n"));
+#endif
 		}
 	}
 }
OpenPOWER on IntegriCloud