Hi Dan,
Dan Espen <dane_at_mk.telcordia.com> wrote:
>
> Can you give more detail about what the annoying screen refresh looks
> like? What parts of the screen are redrawn.
>
> In modules/FvwmBacker/FvwmBacker.c around line 365, change it to
> look like this:
>
> void ProcessMessage(unsigned long type, unsigned long *body)
> {
> char *tline;
>
> switch (type)
> {
> case M_CONFIG_INFO:
> tline = (char*)&(body[3]);
> fprintf(stderr"FvwmBacker: config\n");
> ExecuteMatchingCommands(ParseConfigLine(tline));
> break;
>
> case M_NEW_DESK:
> current_desk = body[0];
> fprintf(stderr"FvwmBacker: new desk\n");
> ExecuteMatchingCommands(-1);
> break;
>
> case M_NEW_PAGE:
> current_desk = body[2];
> current_x = body[0]/MyDisplayWidth;
> current_y = body[1]/MyDisplayHeight;
> fprintf(stderr"FvwmBacker: new page\n");
> ExecuteMatchingCommands(-1);
> break;
>
> }
> }
Aha! FvwmBacker is getting a M_NEW_PAGE whenever I deiconify (or select from
the taskbar or other window manager menu) a window - regardless of whether a
page/desk change has occurred. Eg. here's what I got (with a bit more detail
in the debug output):-
Reload modules' config:-
FvwmBacker: config *FvwmBackerCommand (Desk 0, Page * *) -solid \#3F5469
FvwmBacker: config *FvwmBackerCommand (Desk 1, Page * *) -solid purple4
FvwmBacker: config *FvwmBackerCommand (Desk 2, Page * *) -solid
DarkOliveGreen4
FvwmBacker: config *FvwmBackerCommand (Desk 3, Page * *) -solid brown4
Select window on desk 1 (originally on desk 0):-
FvwmBacker: new desk (desk=1)
FvwmBacker: new page (pagex=0,pagey=0,desk=1)
Select window on desk 1 again:-
FvwmBacker: new page (pagex=0,pagey=0,desk=1)
Obviously this last command is doing an unnecessary xsetroot, which causes
Exceed to refresh everything (I've verified that a manual xsetroot has the
same result).
I seem to be able to fix the problem by adding a test in ProcessMessage,
which skips any action if the same page and desk is selected (patch to
fvwm-snap-20010510 attached). Is that the right place to fix this?
Thanks,
Tim.
============================== cut here ==============================
Tim Adye, BaBar/DELPHI Groups, Particle Physics Dept., _ /|
Rutherford Appleton Laboratory, UK. \'o.O' Oop!
e-mail: T.J.Adye_at_rl.ac.uk or VXCERN::ADYE (HEPNET/SPAN) =(___)= Ack!
WWW:
http://hepwww.rl.ac.uk/Delphi/Adye/homepage.html U Thphft!
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu May 10 2001 - 21:41:27 BST