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)

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to