--- rxvt-unicode/src/perl/tabbed 2006/02/11 02:05:28 1.18 +++ rxvt-unicode/src/perl/tabbed 2006/02/20 19:42:55 1.20 @@ -86,6 +86,12 @@ ); } +sub on_resize_all_windows { + my ($self, $width, $height) = @_; + + 1 +} + sub copy_properties { my ($self) = @_; my $tab = $self->{cur}; @@ -105,12 +111,17 @@ if ($atom == $wm_normal_hints) { my (@hints) = unpack "l!*", $items; - + $hints[$_] += $self->{tabheight} for (4, 6, 16); - + $items = pack "l!*", @hints; } - $self->XChangeWindowProperty ($self->parent, $atom, $type, $format, $items); + + my ($dtype, $dformat, $ditems) = $self->XGetWindowProperty ($self->parent, $atom); + + if ($dtype != $type or $dformat != $format or $ditems ne $items) { + $self->XChangeWindowProperty ($self->parent, $atom, $type, $format, $items); + } } $self->XDeleteProperty ($self->parent, $_) for keys %our_props; @@ -129,7 +140,10 @@ $self->configure; $self->copy_properties; - $tab->focus_in; + + $tab->focus_out; # just in case, should be a nop + $tab->focus_in if $self->focus; + $tab->XMapWindow ($tab->parent); delete $tab->{activity}; $self->refresh;