diff options
| author | Po Lu | 2021-12-26 09:20:51 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-26 09:20:51 +0800 |
| commit | ab3d5b8b32821ea40ec93aa7804d4c75ae87c3db (patch) | |
| tree | 9bd326e45a57312d42a78d35c9269970285b5e03 /src/pgtkterm.c | |
| parent | 3f64204c12cb713329e29b7b847875bee9885ba3 (diff) | |
| download | emacs-ab3d5b8b32821ea40ec93aa7804d4c75ae87c3db.tar.gz emacs-ab3d5b8b32821ea40ec93aa7804d4c75ae87c3db.zip | |
Don't clear internal border if frame isn't realized
* src/pgtkterm.c (pgtk_clear_under_internal_border): Don't clear
border if frame isn't realized. (bug#52705)
Diffstat (limited to 'src/pgtkterm.c')
| -rw-r--r-- | src/pgtkterm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 74a71b984c5..c6b56b271e8 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c | |||
| @@ -4832,7 +4832,8 @@ pgtk_fill_rectangle (struct frame *f, unsigned long color, int x, int y, | |||
| 4832 | void | 4832 | void |
| 4833 | pgtk_clear_under_internal_border (struct frame *f) | 4833 | pgtk_clear_under_internal_border (struct frame *f) |
| 4834 | { | 4834 | { |
| 4835 | if (FRAME_INTERNAL_BORDER_WIDTH (f) > 0) | 4835 | if (FRAME_INTERNAL_BORDER_WIDTH (f) > 0 |
| 4836 | && gtk_widget_get_realized (FRAME_GTK_OUTER_WIDGET (f))) | ||
| 4836 | { | 4837 | { |
| 4837 | int border = FRAME_INTERNAL_BORDER_WIDTH (f); | 4838 | int border = FRAME_INTERNAL_BORDER_WIDTH (f); |
| 4838 | int width = FRAME_PIXEL_WIDTH (f); | 4839 | int width = FRAME_PIXEL_WIDTH (f); |