… | |
… | |
400 | |
400 | |
401 | # helper extension implementing the subwindows of a tabbed terminal. |
401 | # helper extension implementing the subwindows of a tabbed terminal. |
402 | # simply proxies all interesting calls back to the tabbed class. |
402 | # simply proxies all interesting calls back to the tabbed class. |
403 | |
403 | |
404 | { |
404 | { |
405 | for my $hook qw(start destroy key_press property_notify) { |
405 | for my $hook (qw(start destroy key_press property_notify)) { |
406 | eval qq{ |
406 | eval qq{ |
407 | sub on_$hook { |
407 | sub on_$hook { |
408 | my \$parent = \$_[0]{term}{parent} |
408 | my \$parent = \$_[0]{term}{parent} |
409 | or return; |
409 | or return; |
410 | \$parent->tab_$hook (\@_) |
410 | \$parent->tab_$hook (\@_) |