emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 846ff29: Remove code what would always maximize xwidgets on Macos


From: Lars Ingebrigtsen
Subject: master 846ff29: Remove code what would always maximize xwidgets on Macos
Date: Mon, 8 Nov 2021 02:01:16 -0500 (EST)

branch: master
commit 846ff294206c922da4c48396e440e90179ffe070
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Remove code what would always maximize xwidgets on Macos
    
    * src/xwidget.c (x_draw_xwidget_glyph_string): Remove code that
    would always maximize the widget on Macos (bug#51674).  This code
    was probably added to work around a resizing bug that has since
    been fixed.
---
 src/xwidget.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/src/xwidget.c b/src/xwidget.c
index 1815a39..769d491 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -1402,22 +1402,6 @@ x_draw_xwidget_glyph_string (struct glyph_string *s)
   window_box (s->w, TEXT_AREA, &text_area_x, &text_area_y,
               &text_area_width, &text_area_height);
 
-  /* On X11, this keeps generating expose events.  */
-#ifndef USE_GTK
-  /* Resize xwidget webkit if its container window size is changed in
-     some ways, for example, a buffer became hidden in small split
-     window, then it can appear front in merged whole window.  */
-  if (EQ (xww->type, Qwebkit)
-      && (xww->width != text_area_width || xww->height != text_area_height))
-    {
-      Lisp_Object xwl;
-      XSETXWIDGET (xwl, xww);
-      Fxwidget_resize (xwl,
-                       make_int (text_area_width),
-                       make_int (text_area_height));
-    }
-#endif
-
   clip_left = max (0, text_area_x - x);
   clip_right = max (clip_left,
                    min (xww->width, text_area_x + text_area_width - x));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]