16 lines
549 B
Diff
16 lines
549 B
Diff
|
diff --git a/src/gtkutil.c b/src/gtkutil.c
|
||
|
index e76b0a7..b3aa335 100644
|
||
|
--- a/src/gtkutil.c
|
||
|
+++ b/src/gtkutil.c
|
||
|
@@ -1079,7 +1079,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));
|