ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/background
(Generate patch)

Comparing rxvt-unicode/src/perl/background (file contents):
Revision 1.65 by sf-exg, Wed Jun 20 18:18:14 2012 UTC vs.
Revision 1.66 by root, Thu Jun 28 15:19:15 2012 UTC

845Anything that didn't fit any of the other categories, even after applying 845Anything that didn't fit any of the other categories, even after applying
846force and closing our eyes. 846force and closing our eyes.
847 847
848=over 4 848=over 4
849 849
850=item once { ... } 850=item keep { ... }
851 851
852 #TODO#
853
852This function takes a code block as argument, that is, one or more 854This operator takes a code block as argument, that is, one or more
853statements enclosed by braces. 855statements enclosed by braces.
854 856
855The trick is that this code block is only evaluated once - future calls 857The trick is that this code block is only evaluated once - future calls
856will simply return the original image (yes, it should only be used with 858will simply return the original image (yes, it should only be used with
857images). 859images).
865C<once> block so it only is reevaluated as required. 867C<once> block so it only is reevaluated as required.
866 868
867Putting the blur into a C<once> block will make sure the blur is only done 869Putting the blur into a C<once> block will make sure the blur is only done
868once: 870once:
869 871
870 rootlign once { blur 10, root } 872 rootlign keep { blur 10, root }
871 873
872This leaves the question of how to force reevaluation of the block, 874This leaves the question of how to force reevaluation of the block,
873in case the root background changes: If expression inside the block 875in case the root background changes: If expression inside the block
874is sensitive to some event (root background changes, window geometry 876is sensitive to some event (root background changes, window geometry
875changes), then it will be reevaluated automatically as needed. 877changes), then it will be reevaluated automatically as needed.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines