On Sun, May 27, 2001 at 01:34:28PM -0500, An Thi-Nguyen Le wrote:
> [An Thi-Nguyen Le - Sun, 27 May 2001 01:32:43 PM CDT]
> >     *FvwmColorset 8 fg blue, bg black, Pixmap
> <snip>
> >     *FvwmColorset 8 fg red, bg white, Pixmap
> 
> This even happens when I get the commands correct.  :)
> 
>      *FvwmThemeColorset 8 fg blue, bg black, Pixmap
>      *FvwmThemeColorset 8 fg red, bg white, Pixmap

Neither command is correct ;-)  FvwmTheme does not use new

  *FvwmTheme...

config lines after it has already started.  The correct syntax is

  SendToModule FvwmTheme Colorset ...

Anyway, with this config I was able to reproduce and fix the
problem.  I guess the patch you sent worked also (I did not try),
but it would have caused a redraw for every colour set packet,
even if FvwmWharf did not use that specific colour set.  Well,
FvwmWharf *did* redraw its folders for each packet, but that is a
different story.  Actually, the two lines

  XClearWindow(dpy, main_win);
  RedrawWindow(&main_win,0, -1, num_rows, num_columns);

in change_colorset() somehow went into the loop

  for (x = 0; x < num_folders; x++)
  {
    ...
    XClearWindow(dpy, main_win);
    RedrawWindow(&main_win,0, -1, num_rows, num_columns);
  }

which was meant to redraw the folders.  So, if the wharf had no
folders, the main window was never redrawn.  If it had folders it
was redrawn once for each folder.  The simple fix is to move these
lines out of the loop.  I'll commit that in a moment.

Bye

Dominik ^_^  ^_^

--
Dominik Vogt, [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to