[openbox] syntax error in openbox/moveresize.c

Alexey Korop akorop at gmail.com
Tue Dec 14 23:33:29 EST 2010


Hi, All

     I have tried to build openbox under crunchbang linux with minimal 
couple of the libraries, and I got an error message

openbox/moveresize.c: In function ‘do_resize’:
openbox/moveresize.c:407: error: ‘waiting_for_sync’ undeclared (first 
use in this function)

     This problem is solved by patch following. I do not understand the 
meaning of this fragment, the patch is formed from formal considerations.

+++ moveresize.c  2010-12-15 06:13:56.000000000 +0200
@@ -400,11 +400,15 @@
      client_try_configure(moveresize_client, &x, &y, &w, &h,
                           &lw, &lh, TRUE);
      if (!(w == moveresize_client->area.width &&
-          h == moveresize_client->area.height) &&
+          h == moveresize_client->area.height)
+#ifdef SYNC
+         &&
          /* if waiting_for_sync == 0, then we aren't waiting.
             if it is > SYNC_TIMEOUTS, then we have timed out
             that many times already, so forget about waiting more */
-        (waiting_for_sync == 0 || waiting_for_sync > SYNC_TIMEOUTS))
+        (waiting_for_sync == 0 || waiting_for_sync > SYNC_TIMEOUTS)
+#endif
+       )
      {
  #ifdef SYNC
          if (config_resize_redraw && obt_display_extension_sync &&




Yours truly Alexey


More information about the openbox mailing list