|
From: | Robert Weiner |
Subject: | bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments |
Date: | Thu, 27 Jun 2019 08:27:49 -0400 |
Robert Weiner <rsw@gnu.org> writes: I wrote: The following is a temporary fix for the mouse-position and mouse-pixel-position part of the problem. Something needs to be fixed in the original functions in the C code, though. -- Bob ;; From mouse-position: ;; f = SELECTED_FRAME (); ;; XSETFRAME (lispy_dummy, f); ;; It seems like the XSETFRAME macro is not properly copying the value of f on initial frame selection under the macOS window system. ;; The problem occurs on other systems as well, e.g. Emacs 25.2 under Windows 7. ;; The function below is a temporary fix for this. (setq mouse-position-function (lambda (frame-x-dot-y) "Under macOS, mouse-position and mouse-pixel-position sometimes fail to return the selected-frame (returning the prior frame instead); fix that here." (setcar frame-x-dot-y (selected-frame)) frame-x-dot-y)) |
[Prev in Thread] | Current Thread | [Next in Thread] |