Hi,

I've just noticed that ctwm gets stuck when moving a pinned menu so that
it overlaps another pinned menu. The loop in the MoveMenu()-function is
never left because there is sent a NoExposure event which is not
handled. I've fixed it by just handling it like an Expose event:

diff -u ctwm-3.7-beta2/menus.c ctwm-3.7-beta2-mh/menus.c
--- ctwm-3.7-beta2/menus.c      Tue May  3 16:42:13 2005
+++ ctwm-3.7-beta2-mh/menus.c   Thu May  5 13:45:31 2005
@@ -4682,6 +4682,7 @@
                newY = ActiveMenu->y;
                break;
            case Expose:
+           case NoExpose:
                 Event = ev;
                 DispatchEvent ();
                XMaskEvent (dpy, event_mask, &ev);

I'm not sure if this is the right thing to do, but it works fine for me.

Regards, Marcel



Reply via email to