Skip throttling for event handling for tab_property_notify.

After some experiments, it turns out, that notifications for X
properties for the embedded window (i.e. tab) are not very often, but
they usually send with "packs", so for example, there could be several
different atoms send in short period of time, i.e.:

_XEMBED_INFO
WM_NORMAL_HINTS
WM_NORMAL_HINTS
WM_NAME
_NET_WM_NAME
WM_ICON_NAME
_NET_WM_ICON_NAME

Some of the atoms represents title change, size of window, size of the
font and so on. Allow those changes to be applied.
This commit is contained in:
2026-08-10 18:10:09 +02:00
parent 4530aa33aa
commit ea61d2bb5b
-8
View File
@@ -815,14 +815,6 @@ sub tab_property_notify {
return () unless $event->{window} == $tab->parent; return () unless $event->{window} == $tab->parent;
return () unless $tab == $self->{cur}; return () unless $tab == $self->{cur};
# skip if called too often (within 0.1s)
my $now = urxvt::NOW;
my $last = $self->{last_property_update} // 0;
if ($now - $last < 0.1) {
return ();
}
$self->{last_property_update} = $now;
# update only the changed property instead of all properties # update only the changed property instead of all properties
my $atom = $event->{atom}; my $atom = $event->{atom};
my ($type, $format, $items) = $self->XGetWindowProperty ($tab->parent, $atom); my ($type, $format, $items) = $self->XGetWindowProperty ($tab->parent, $atom);