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)
This commit is contained in:
parent
3f64204c12
commit
ab3d5b8b32
1 changed files with 2 additions and 1 deletions
|
|
@ -4832,7 +4832,8 @@ pgtk_fill_rectangle (struct frame *f, unsigned long color, int x, int y,
|
|||
void
|
||||
pgtk_clear_under_internal_border (struct frame *f)
|
||||
{
|
||||
if (FRAME_INTERNAL_BORDER_WIDTH (f) > 0)
|
||||
if (FRAME_INTERNAL_BORDER_WIDTH (f) > 0
|
||||
&& gtk_widget_get_realized (FRAME_GTK_OUTER_WIDGET (f)))
|
||||
{
|
||||
int border = FRAME_INTERNAL_BORDER_WIDTH (f);
|
||||
int width = FRAME_PIXEL_WIDTH (f);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue