Blame emacs-style-change-cb.patch
|
Petr Hracek |
a50699 |
diff --git a/src/gtkutil.c b/src/gtkutil.c
|
|
Petr Hracek |
a50699 |
index e76b0a7..b3aa335 100644
|
|
Petr Hracek |
a50699 |
--- a/src/gtkutil.c
|
|
Petr Hracek |
a50699 |
+++ b/src/gtkutil.c
|
|
Petr Hracek |
a50699 |
@@ -1079,7 +1079,9 @@ style_changed_cb (GObject *go,
|
|
Petr Hracek |
a50699 |
FOR_EACH_FRAME (rest, frame)
|
|
Petr Hracek |
a50699 |
{
|
|
Petr Hracek |
a50699 |
FRAME_PTR f = XFRAME (frame);
|
|
Petr Hracek |
a50699 |
- if (FRAME_X_DISPLAY (f) == dpy)
|
|
Petr Hracek |
a50699 |
+ if (FRAME_LIVE_P (f)
|
|
Petr Hracek |
a50699 |
+ && FRAME_X_P (f)
|
|
Petr Hracek |
a50699 |
+ && FRAME_X_DISPLAY (f) == dpy)
|
|
Petr Hracek |
a50699 |
{
|
|
Petr Hracek |
a50699 |
x_set_scroll_bar_default_width (f);
|
|
Petr Hracek |
a50699 |
xg_frame_set_char_size (f, FRAME_COLS (f), FRAME_LINES (f));
|