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.86 by sf-exg, Fri Oct 4 17:09:57 2013 UTC vs.
Revision 1.89 by root, Sat Dec 13 12:24:33 2014 UTC

1#! perl 1#! perl
2 2
3#:META:X_RESOURCE:%.expr:string:background expression 3#:META:RESOURCE:%.expr:string:background expression
4#:META:X_RESOURCE:%.border:boolean:respect the terminal border 4#:META:RESOURCE:%.border:boolean:respect the terminal border
5#:META:X_RESOURCE:%.interval:seconds:minimum time between updates 5#:META:RESOURCE:%.interval:seconds:minimum time between updates
6 6
7=head1 NAME 7=head1 NAME
8 8
9background - manage terminal background 9background - manage terminal background
10 10
958=item focus_fade $factor, $color, $img 958=item focus_fade $factor, $color, $img
959 959
960Fades the image by the given factor (and colour) when focus is lost (the 960Fades the image by the given factor (and colour) when focus is lost (the
961same as the C<-fade>/C<-fadecolor> command line options, which also supply 961same as the C<-fade>/C<-fadecolor> command line options, which also supply
962the default values for C<factor> and C<$color>. Unlike with C<-fade>, the 962the default values for C<factor> and C<$color>. Unlike with C<-fade>, the
963C<$factor> is the real value, not a percentage value (that is, 0..1, not 963C<$factor> is a real value, not a percentage value (that is, 0..1, not
9640..100). 9640..100).
965 965
966Example: do the right thing when focus fading is requested. 966Example: do the right thing when focus fading is requested.
967 967
968 focus_fade load "mybg.jpg"; 968 focus_fade load "mybg.jpg";
1186# } 1186# }
1187 1187
1188 # set background pixmap 1188 # set background pixmap
1189 1189
1190 $self->set_background ($img, $self->{border}); 1190 $self->set_background ($img, $self->{border});
1191 $self->scr_recolour (0); 1191 $self->scr_recolor (0);
1192 $self->want_refresh; 1192 $self->want_refresh;
1193} 1193}
1194 1194
1195sub on_start { 1195sub on_start {
1196 my ($self) = @_; 1196 my ($self) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines