comparison src/popupwin.c @ 17041:5ed4965ebc7b v8.1.1520

patch 8.1.1520: popup windows are ignored when dealing with mouse position commit https://github.com/vim/vim/commit/451d4b5b7c7262631cd1f5057c75d6f5f5772fb1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 12 20:22:27 2019 +0200 patch 8.1.1520: popup windows are ignored when dealing with mouse position Problem: Popup windows are ignored when dealing with mouse position Solution: Find the mouse position inside a popup window. Allow for modeless selection.
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Jun 2019 20:30:07 +0200
parents d4a7c690c8e6
children 7fe328ad5573
comparison
equal deleted inserted replaced
17040:5ed044bdf675 17041:5ed4965ebc7b
422 } 422 }
423 } 423 }
424 } 424 }
425 425
426 /* 426 /*
427 * Return the height of popup window "wp", including border and padding.
428 */
429 int
430 popup_height(win_T *wp)
431 {
432 return wp->w_height
433 + wp->w_popup_padding[0] + wp->w_popup_border[0]
434 + wp->w_popup_padding[2] + wp->w_popup_border[2];
435 }
436
437 /*
438 * Return the width of popup window "wp", including border and padding.
439 */
440 int
441 popup_width(win_T *wp)
442 {
443 return wp->w_width
444 + wp->w_popup_padding[3] + wp->w_popup_border[3]
445 + wp->w_popup_padding[1] + wp->w_popup_border[1];
446 }
447
448 /*
427 * Adjust the position and size of the popup to fit on the screen. 449 * Adjust the position and size of the popup to fit on the screen.
428 */ 450 */
429 void 451 void
430 popup_adjust_position(win_T *wp) 452 popup_adjust_position(win_T *wp)
431 { 453 {