gui_update_scrollbars(TRUE);
gui_update_cursor(FALSE, TRUE);
#if defined(FEAT_GUI_GTK) && defined(USE_GTK4_SNAPSHOT)
- gui_gtk_calculate_bleed(pixel_width, pixel_height);
+ gui_gtk4_calculate_bleed(pixel_width, pixel_height);
#endif
#if defined(FEAT_XIM) && !defined(FEAT_GUI_GTK)
xim_set_status_area();
gui_reset_scroll_region();
#if defined(FEAT_GUI_GTK) && defined(USE_GTK4_SNAPSHOT)
- gui_gtk_calculate_bleed(width, height);
+ gui_gtk4_calculate_bleed(width, height);
#endif
}
* after all UI elements are positioned and resized.
*/
void
-gui_gtk_calculate_bleed(int width, int height)
+gui_gtk4_calculate_bleed(int width, int height)
{
+ int old_right = gui.bleed_right;
+ int old_bot = gui.bleed_bot;
+
gui.bleed_right = width - last_text_area_w;
gui.bleed_bot = height - last_text_area_h;
gui.bleed_right = 0;
if (gui.bleed_bot < 0)
gui.bleed_bot = 0;
+
+ // Make sure to update draw area if changed
+ if (old_right != gui.bleed_right || old_bot != gui.bleed_bot)
+ gtk_widget_queue_draw(GTK_WIDGET(gui.drawarea));
}
#endif
void gui_mch_create_scrollbar(scrollbar_T *sb, int orient);
void gui_mch_destroy_scrollbar(scrollbar_T *sb);
void gui_mch_set_text_area_pos(int x, int y, int w, int h);
-void gui_gtk_calculate_bleed(int width, int height);
+void gui_gtk4_calculate_bleed(int width, int height);
char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, char_u *initdir, char_u *filter);
char_u *gui_mch_browsedir(char_u *title, char_u *initdir);
int gui_mch_dialog(int type, char_u *title, char_u *message, char_u *buttons, int def_but, char_u *textfield, int ex_cmd);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 861,
/**/
860,
/**/