From 25d346437329083b623d6e051f0acf71d35364b6 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 13 Feb 2006 18:45:39 +0000 Subject: [PATCH] (xwindow): Update the code to show the window box. --- src/.gdbinit | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/.gdbinit b/src/.gdbinit index c67e0b0389..aeabe19100 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -548,7 +548,16 @@ end define xwindow xgetptr $ print (struct window *) $ptr - printf "%dx%d+%d+%d\n", $->width, $->height, $->left, $->top + set $window = (struct window *) $ptr + xgetint $window->total_cols + set $width=$int + xgetint $window->total_lines + set $height=$int + xgetint $window->left_col + set $left=$int + xgetint $window->top_line + set $top=$int + printf "%dx%d+%d+%d\n", $width, $height, $left, $top end document xwindow Print $ as a window pointer, assuming it is an Emacs Lisp window value. -- 2.20.1