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

Comparing rxvt-unicode/src/perl/tabbed (file contents):
Revision 1.29 by mikachu, Mon Jan 9 17:49:00 2012 UTC vs.
Revision 1.31 by root, Wed Jun 6 15:06:41 2012 UTC

1#! perl 1#! perl
2
3#:META:X_RESOURCE:tabbar-fg:tab bar foreground colour
4#:META:X_RESOURCE:tabbar-bg:tab bar background colour
5#:META:X_RESOURCE:tab-fg:tab foreground colour
6#:META:X_RESOURCE:tab-bg:tab background colour
2 7
3sub refresh { 8sub refresh {
4 my ($self) = @_; 9 my ($self) = @_;
5 10
6 my $ncol = $self->ncol; 11 my $ncol = $self->ncol;
77 82
78 # this is an extremely dirty way to force a configurenotify, but who cares 83 # this is an extremely dirty way to force a configurenotify, but who cares
79 $tab->XMoveResizeWindow ( 84 $tab->XMoveResizeWindow (
80 $tab->parent, 85 $tab->parent,
81 0, $self->{tabheight} + 1, 86 0, $self->{tabheight} + 1,
82 $self->width, 87 $self->width, $self->height - $self->{tabheight}
83 $self->height - $self->{tabheight} + 2 * $tab->int_bwidth
84 ); 88 );
85 $tab->XMoveResizeWindow ( 89 $tab->XMoveResizeWindow (
86 $tab->parent, 90 $tab->parent,
87 0, $self->{tabheight}, 91 0, $self->{tabheight},
88 $self->width, 92 $self->width, $self->height - $self->{tabheight}
89 $self->height - $self->{tabheight} + 2 * $tab->int_bwidth
90 ); 93 );
91} 94}
92 95
93sub on_resize_all_windows { 96sub on_resize_all_windows {
94 my ($self, $width, $height) = @_; 97 my ($self, $width, $height) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines