[XForms] Fixing the popups?

Angus Leeming angus.leeming at btopenworld.com
Fri Jun 4 10:04:12 EDT 2004


On Friday 04 June 2004 2:54 pm, Jean-Marc Lasgouttes wrote:
> It looks quite broken, indeed. It is maybe because the 4th menu is
> a TOUCH_MENU. These look quite useless, anyway.
>
> The code in pup.c seems to be very similar to what is done in
> xforms, but it does not suffer from redraw problems...

Can you give me a prescription to trigger these problems myself? I've 
always been rather hazy about them.

Now that I've got your attention ;-)

Could you try out the attached patch (try 2). It seems to do the right 
thing (Ie, I can detect no change to either the demos programs or 
LyX)

It seems that this code is triggered very rarely, if at all. If you 
remove the 'button_down' test, you'll get masses of print statements, 
so I think that it's doing the right thing.

	if (fl_pushobj && !button_down(xev.xbutton.state)) {
		fprintf(stderr, "Dispatching...\n");
		XSendEvent(flx->display, flx->win, False, 0, &xev);
	}

And it has the advantage of fixing the lyx scrollbar again...

Angus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: popup.diff
Type: text/x-diff
Size: 2947 bytes
Desc: not available
Url : attachments/20040604/ff4382c4/attachment-0010.bin 


More information about the Xforms mailing list