Loading ...
Sorry, an error occurred while loading the content.
 

Re: Motif Problem?

Expand Messages
  • Bram Moolenaar
    ... [...] ... You could postpone creating the menu until gui_mch_show_popupmenu() is called. I didn t verify that this really works though. -- hundred-and-one
    Message 1 of 4 , Dec 22, 2000
      David Harrison wrote:

      > > > I was investigating an item in the Motif GUI TODO for Vim6.0:
      > > >
      > > > When using the right mouse button, for some people gvim freezes for a
      > > > couple of seconds. This doesn't happen when there is no Popup menu.
      > > > (Halevy)
      [...]
      > Yes. I believe I have found a much better way to solve this problem.
      > I have gone so far as to build a mini-Motif application to see if my idea
      > works. What is the idea, you ask?
      >
      > It is simply that Vim should only create the popup menus when it needs to
      > show them and then destroy them when not needed. This will stop the "mouse
      > freezing" problem. The only problem is... where to do this in the code.
      > I am currently experimenting with hooking into the 'mousemodel' value being
      > changed and trying to create/destroy the menu's widgets then.
      >
      > (in option.c "did_set_string_option()" -- look for '/* mousemodel */', that's
      > where I'm doing the hook)

      You could postpone creating the menu until gui_mch_show_popupmenu() is called.
      I didn't verify that this really works though.

      --
      hundred-and-one symptoms of being an internet addict:
      100. The most exciting sporting events you noticed during summer 1996
      was Netscape vs. Microsoft.

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.