diff options
| author | Lars Ingebrigtsen | 2021-11-08 08:01:07 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-11-08 08:01:07 +0100 |
| commit | 846ff294206c922da4c48396e440e90179ffe070 (patch) | |
| tree | 0b4f7bcb7de18dfec3137e9d046ce33f88896b41 /src | |
| parent | ca9fb109f75565dce7ba527f273cebc16887287e (diff) | |
| download | emacs-846ff294206c922da4c48396e440e90179ffe070.tar.gz emacs-846ff294206c922da4c48396e440e90179ffe070.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xwidget.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/xwidget.c b/src/xwidget.c index 1815a39ab6f..769d491f278 100644 --- a/src/xwidget.c +++ b/src/xwidget.c | |||
| @@ -1402,22 +1402,6 @@ x_draw_xwidget_glyph_string (struct glyph_string *s) | |||
| 1402 | window_box (s->w, TEXT_AREA, &text_area_x, &text_area_y, | 1402 | window_box (s->w, TEXT_AREA, &text_area_x, &text_area_y, |
| 1403 | &text_area_width, &text_area_height); | 1403 | &text_area_width, &text_area_height); |
| 1404 | 1404 | ||
| 1405 | /* On X11, this keeps generating expose events. */ | ||
| 1406 | #ifndef USE_GTK | ||
| 1407 | /* Resize xwidget webkit if its container window size is changed in | ||
| 1408 | some ways, for example, a buffer became hidden in small split | ||
| 1409 | window, then it can appear front in merged whole window. */ | ||
| 1410 | if (EQ (xww->type, Qwebkit) | ||
| 1411 | && (xww->width != text_area_width || xww->height != text_area_height)) | ||
| 1412 | { | ||
| 1413 | Lisp_Object xwl; | ||
| 1414 | XSETXWIDGET (xwl, xww); | ||
| 1415 | Fxwidget_resize (xwl, | ||
| 1416 | make_int (text_area_width), | ||
| 1417 | make_int (text_area_height)); | ||
| 1418 | } | ||
| 1419 | #endif | ||
| 1420 | |||
| 1421 | clip_left = max (0, text_area_x - x); | 1405 | clip_left = max (0, text_area_x - x); |
| 1422 | clip_right = max (clip_left, | 1406 | clip_right = max (clip_left, |
| 1423 | min (xww->width, text_area_x + text_area_width - x)); | 1407 | min (xww->width, text_area_x + text_area_width - x)); |