From 6822f7d4e3394e0f501558a6000eda609a5dc1c5 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 20 Jan 2005 17:04:20 +0000 Subject: [PATCH] Make nullplugin dialog not show up on clicks with buttons other than the left mouse button. Bug 270377, patch by Vincent Caron , r=bryner, sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@168068 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/samples/default/unix/nullplugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/modules/plugin/samples/default/unix/nullplugin.c b/mozilla/modules/plugin/samples/default/unix/nullplugin.c index 7388ea31cb9..9134dc15706 100644 --- a/mozilla/modules/plugin/samples/default/unix/nullplugin.c +++ b/mozilla/modules/plugin/samples/default/unix/nullplugin.c @@ -467,7 +467,10 @@ xt_event_handler(Widget xt_w, PluginInstance *This, XEvent *xevent, Boolean *b) drawPixmap(This); break; case ButtonRelease: - makeWidget(This); + if (xevent->xbutton.button == Button1) + { + makeWidget(This); + } break; default: break;