mirror of
https://github.com/gryf/tabbedalt.git
synced 2026-08-20 10:01:54 +02:00
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:
@@ -815,14 +815,6 @@ sub tab_property_notify {
|
||||
return () unless $event->{window} == $tab->parent;
|
||||
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
|
||||
my $atom = $event->{atom};
|
||||
my ($type, $format, $items) = $self->XGetWindowProperty ($tab->parent, $atom);
|
||||
|
||||
Reference in New Issue
Block a user