Revision: 4458
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4458&view=rev
Author:   ossman_
Date:     2011-06-01 09:26:57 +0000 (Wed, 01 Jun 2011)

Log Message:
-----------
Fix some misbehaviour with the scroll widget caused by the popup menu.

Modified Paths:
--------------
    trunk/vncviewer/Viewport.cxx

Modified: trunk/vncviewer/Viewport.cxx
===================================================================
--- trunk/vncviewer/Viewport.cxx        2011-05-30 12:22:39 UTC (rev 4457)
+++ trunk/vncviewer/Viewport.cxx        2011-06-01 09:26:57 UTC (rev 4458)
@@ -82,6 +82,12 @@
   // button component (which we don't want)
   contextMenu->box(FL_NO_BOX);
 
+  // The (invisible) button associated with this widget can mess with
+  // things like Fl_Scroll so we need to get rid of any parents.
+  // Unfortunately that's not possible because of STR #2654, but
+  // reparenting to the current window works for most cases.
+  window()->add(contextMenu);
+
   initContextMenu();
 
   setMenuKey();
@@ -617,8 +623,6 @@
   if (window()->contains(Fl::focus()))
     Fl::focus(NULL);
 
-  contextMenu->position(Fl::event_x(), Fl::event_y());
-
   m = contextMenu->popup();
   if (m == NULL)
     return;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to