sub on_configure_notify {
my ($self, $event) = @_;
- $self->cmd_parse ("\033]20;;=+$event->{x}+$event->{y}\007");
+ my ($x, $y) = $self->XTranslateCoordinates (
+ $self->parent, $self->DefaultRootWindow,
+ 0, 0
+ );
+
+ $self->cmd_parse ("\033]20;;=+$x+$y\007");
}
XMoveResizeWindow (rxvt_term *term, Window window, int x, int y, unsigned int width, unsigned int height)
C_ARGS: term->display->display, (Window)window, x, y, width, height
+void
+rxvt_term::XTranslateCoordinates (Window src, Window dst, int x, int y)
+ PPCODE:
+{
+ int dx, dy;
+ Window child;
+
+ if (XTranslateCoordinates (THIS->display->display, src, dst, x, y, &dx, &dy, &child))
+ {
+ EXTEND (SP, 3);
+ PUSHs (newSViv (dx));
+ PUSHs (newSViv (dy));
+ PUSHs (newSVuv (child));
+ }
+}
+
#############################################################################
# urxvt::overlay
#############################################################################