emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 57bcdc7: Don't call XGetGeometry for frames witho


From: Martin Rudalics
Subject: [Emacs-diffs] emacs-26 57bcdc7: Don't call XGetGeometry for frames without outer X window (Bug#32615)
Date: Tue, 4 Sep 2018 02:54:49 -0400 (EDT)

branch: emacs-26
commit 57bcdc76e0518f53cd171c76e726e6bdf646bf9a
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>

    Don't call XGetGeometry for frames without outer X window (Bug#32615)
    
    * src/xfns.c (frame_geometry): Don't call XGetGeometry when
    FRAME has no outer X window; return nil instead.  (Bug#32615)
---
 src/xfns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfns.c b/src/xfns.c
index 3da853e..1381fee 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5054,7 +5054,7 @@ frame_geometry (Lisp_Object frame, Lisp_Object attribute)
   int menu_bar_height = 0, menu_bar_width = 0;
   int tool_bar_height = 0, tool_bar_width = 0;
 
-  if (FRAME_INITIAL_P (f) || !FRAME_X_P (f))
+  if (FRAME_INITIAL_P (f) || !FRAME_X_P (f) || !FRAME_OUTER_WINDOW (f))
     return Qnil;
 
   block_input ();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]