# Description: Enable button presses in docked mode
#  #if'ed code that prevents asclock from receiving ButtonPress events when 
#  docked.  Tested in `normal' mode and nothing broke.  The #if'ed code does not
#  make sense, it seems something else was going to be added but wasn't. (#41955)
# Author: Marcelo E. Magallon <mmagallo@debian.org>
# Last-Update: 2000

Index: asclock-xlib-9/asclock.c
===================================================================
--- asclock-xlib-9.orig/asclock.c	2008-03-27 21:23:49.767813746 +0100
+++ asclock-xlib-9/asclock.c	2008-03-27 20:50:11.576803000 +0100
@@ -137,10 +137,17 @@
   XSetClassHint(dpy, win, &classHint);
 
   XSelectInput(dpy,win,MW_EVENTS);
+  /* I don't understand what the purpose of this is and hadArguments
+     is not modified anywhere and it's preventing the program from
+     catching button presses.  MEM */
+#if 0
   if (hadArguments)
      XSelectInput(dpy,iconwin,MW_EVENTS);
   else
      XSelectInput(dpy,iconwin,MW_EVENTS&~ButtonPressMask);
+#else
+  XSelectInput(dpy,iconwin,MW_EVENTS);
+#endif
   
   if (XStringListToTextProperty(&wname, 1, &name) ==0) {
     fprintf(stderr, "asclock: can't allocate window name\n");
