1 | #! perl |
1 | #! perl |
|
|
2 | |
|
|
3 | #:META:X_RESOURCE:tabbar-fg:colour:tab bar foreground colour |
|
|
4 | #:META:X_RESOURCE:tabbar-bg:colour:tab bar background colour |
|
|
5 | #:META:X_RESOURCE:tab-fg:colour:tab foreground colour |
|
|
6 | #:META:X_RESOURCE:tab-bg:colour:tab background colour |
2 | |
7 | |
3 | sub refresh { |
8 | sub 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 | |
93 | sub on_resize_all_windows { |
96 | sub on_resize_all_windows { |
94 | my ($self, $width, $height) = @_; |
97 | my ($self, $width, $height) = @_; |