[PATCH] Only ongrab kuake hotkey if the $term is not embedded.
Mark Pustjens
pustjens at dds.nl
Tue Dec 6 14:19:00 CET 2011
Hi List,
This patch prevents the kuake hotkey from not working anymore when an embedded
instance of urxvt is closed.
---
src/perl/kuake | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/perl/kuake b/src/perl/kuake
index e6c5949..3551df3 100644
--- a/src/perl/kuake
+++ b/src/perl/kuake
@@ -45,8 +45,9 @@ sub on_root_event {
sub on_destroy {
my ($self) = @_;
- $self->XUngrabKey ($self->XKeysymToKeycode ($self->{keysym}), 0,
$self->DefaultRootWindow)
- if $self->{keysym};
+ if (!${self}->resource("embed") && $self->{keysym}) {
+ $self->XUngrabKey ($self->XKeysymToKeycode ($self->{keysym}), 0,
$self->DefaultRootWindow);
+ }
()
}
--
There are hardly any excesses of the most crazed psychopath that
cannot easily be duplicated by a normal kindly family man who just
comes in to work every day and has a job to do.
(Small Gods)
More information about the rxvt-unicode
mailing list