16 lines
549 B
Diff
16 lines
549 B
Diff
diff --git a/src/gtkutil.c b/src/gtkutil.c
|
|
index 4dbef65..44f828c 100644
|
|
--- a/src/gtkutil.c
|
|
+++ b/src/gtkutil.c
|
|
@@ -1050,7 +1050,9 @@ style_changed_cb (GObject *go,
|
|
FOR_EACH_FRAME (rest, frame)
|
|
{
|
|
FRAME_PTR f = XFRAME (frame);
|
|
- if (FRAME_X_DISPLAY (f) == dpy)
|
|
+ if (FRAME_LIVE_P (f)
|
|
+ && FRAME_X_P (f)
|
|
+ && FRAME_X_DISPLAY (f) == dpy)
|
|
{
|
|
x_set_scroll_bar_default_width (f);
|
|
xg_frame_set_char_size (f, FRAME_COLS (f), FRAME_LINES (f));
|