]> git.eshelyaron.com Git - emacs.git/commitdiff
(xwindow): Update the code to show the window box.
authorRichard M. Stallman <rms@gnu.org>
Mon, 13 Feb 2006 18:45:39 +0000 (18:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 13 Feb 2006 18:45:39 +0000 (18:45 +0000)
src/.gdbinit

index c67e0b0389fb4208c26182a256135c1942dde9b2..aeabe19100ef064704854eeb50395bfeb2d59a63 100644 (file)
@@ -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.