diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pgtkfns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c index c6909ba3d63..4ecb03b91c0 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c | |||
| @@ -3316,6 +3316,8 @@ frame_geometry (Lisp_Object frame, Lisp_Object attribute) | |||
| 3316 | gtk_window_get_position (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), | 3316 | gtk_window_get_position (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), |
| 3317 | &left_pos, &top_pos); | 3317 | &left_pos, &top_pos); |
| 3318 | } else { | 3318 | } else { |
| 3319 | if (FRAME_GTK_WIDGET (f) == NULL) | ||
| 3320 | return Qnil; /* This can occur while creating a frame. */ | ||
| 3319 | GtkAllocation alloc; | 3321 | GtkAllocation alloc; |
| 3320 | gtk_widget_get_allocation (FRAME_GTK_WIDGET (f), &alloc); | 3322 | gtk_widget_get_allocation (FRAME_GTK_WIDGET (f), &alloc); |
| 3321 | left_pos = alloc.x; | 3323 | left_pos = alloc.x; |