X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstate_sketch.cpp;h=5a8ec1596268620a9334813cd37b2433b80b1b13;hb=d57e1c20fdab21aab99fe0561b942b9972f9fbba;hp=691c375261ae88dbd04662b3c2a0d9b64a14ec5f;hpb=aa759125fb923ee26c866453aada53db7e053e6a;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/state_sketch.cpp b/synfig-studio/trunk/src/gtkmm/state_sketch.cpp index 691c375..5a8ec15 100644 --- a/synfig-studio/trunk/src/gtkmm/state_sketch.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_sketch.cpp @@ -60,6 +60,8 @@ #include #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -486,8 +488,9 @@ StateSketch_Context::event_mouse_down_handler(const Smach::event& x) return Smach::RESULT_ACCEPT; } - case BUTTON_RIGHT: // Intercept the right-button click to short-circut the pop-up menu - return Smach::RESULT_ACCEPT; + case BUTTON_RIGHT: // Intercept the right-button click to short-circuit the pop-up menu + if (!getenv("SYNFIG_ENABLE_POPUP_MENU_IN_ALL_TOOLS")) + return Smach::RESULT_ACCEPT; default: return Smach::RESULT_OK;