From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.devel Subject: [PATCH] Fix display box cursor under image with margins Date: Sat, 18 Apr 2020 20:28:26 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000000a8b8a05a393fffa" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="110712"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 18 19:29:17 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPrHJ-000ShO-17 for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Apr 2020 19:29:17 +0200 Original-Received: from localhost ([::1]:60196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPrHI-0004tT-1l for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Apr 2020 13:29:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59684) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPrGj-0004CQ-7Z for emacs-devel@gnu.org; Sat, 18 Apr 2020 13:28:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPrGi-0005EI-5f for emacs-devel@gnu.org; Sat, 18 Apr 2020 13:28:41 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:40855) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPrGh-0005Bu-Qr for emacs-devel@gnu.org; Sat, 18 Apr 2020 13:28:40 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id y4so5356942ljn.7 for ; Sat, 18 Apr 2020 10:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YNo1FR+w+xPrl5QYvuSgoZpC1LUzo6QHNFMs5z2+yGQ=; b=UWbQVd4cRJ97fXZQe3TdiUlfhi7wRgXUXm0HUadfnbhGONh8ErM9roSusoNao3DgLP p8CRVn5NAsMPQnCucJP2jww5sFqitRvr5jIz9zwlADvVjjObEYFjrfnGzRndaf0C5gM4 TtXQXeAIdc305sW2mKG4pBzc08LFFcZWtgTa6Zet13flATAajI9vDELZ5kXp6wh6kFg5 8R0tqXeSboQOgI0q4ESygvL+8/DS+phS8hnuLHYxNivmNLKLh/SsHN+52nZgvqjSFrMf eKFYpjNXRdbHBAFONK2KFtQCT3fn6VqORPg6QPJ+OcjdGgdaiuP95X2Nhmi9ZynJ7oe5 XBoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YNo1FR+w+xPrl5QYvuSgoZpC1LUzo6QHNFMs5z2+yGQ=; b=F6LklkpXmBfxUn/vsvgVKVTQ/RREJlouDCLKtHRici2X+U0ykyoa1FDcasoAVnHxph PE/eA32lWye8rfyQor1G+XjILGwMFlI9JIRQN4m/CDkTao78XumGS6KETmSLP2dh2I0c XVLyFJCbNO/JfdF4xfADKIOLa+7lYUJZV5dAsAo63Yc/XPOA0BjgvAFpNRjuKTzkvMKI sjENK2eA+EZS+bfBRzGwjIuLqvl0JJn3/GhF/b34UasfMjiLynteOTz+vjKZisJ0Qr+k NbrYUBeXQeW4v0Q4Qpf7gcmLmP4Uzjhh2roH3ZKL4lGaXiACcd/Ql7jAGwhhdGOZhB5W WKhw== X-Gm-Message-State: AGi0PuZBRFAbyuX4pDSK901XDr+MEetrnl7gtOToBZmFPWYESVveclj9 ww17qKmdAn3EkOCWeeQnTuwc5/LMIkgGcmqkQ/wYTspn X-Google-Smtp-Source: APiQypL/Frqcop0U7eWH/bgHswnYAdOjS8rFsyY2BhUe8Yo+yNKbKcFkO1dKvZNw4o3yoTqzfrnPBhgHmLqoBmSeyXg= X-Received: by 2002:a2e:a548:: with SMTP id e8mr5332555ljn.151.1587230917946; Sat, 18 Apr 2020 10:28:37 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:247233 Archived-At: --0000000000000a8b8a05a393fffa Content-Type: multipart/alternative; boundary="0000000000000a8b8805a393fff8" --0000000000000a8b8805a393fff8 Content-Type: text/plain; charset="UTF-8" Here is the patch to fix issue making cursor hollow under non-mask image, but containing margins. This patch keeps box cursor to be box in case image has margins. Thanks -- lg --0000000000000a8b8805a393fff8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here is the patch to fix issue making cursor hollow u= nder non-mask image, but containing margins.=C2=A0 This patch keeps box cur= sor to be box in case image has margins.

Thanks

--
lg
--0000000000000a8b8805a393fff8-- --0000000000000a8b8a05a393fffa Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Fix-display-box-cursor-under-image-with-margins.patch" Content-Disposition: attachment; filename="0001-Fix-display-box-cursor-under-image-with-margins.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k95waa9f0 RnJvbSBmNjNiZTU5YjBiZTQxZDBhOTZlYjgzZTFiYTI5MjZkMzMyMzExYmNhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBa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SAgJiYgaW1nLT5oZWlnaHQgPiBtYXggKCp3aWR0 aCwgV0lORE9XX0ZSQU1FX0xJTkVfSEVJR0hUICh3KSkpKQorCQkgIGlmICghaW1nLT5obWFyZ2lu ICYmICFpbWctPnZtYXJnaW4KKyAgICAgICAgICAgICAgICAgICAgICAmJiAoIWltZy0+bWFzawor ICAgICAgICAgICAgICAgICAgICAgICAgICB8fCAoQ09OU1AgKEJWQVIgKGIsIGN1cnNvcl90eXBl KSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICYmIGltZy0+d2lkdGggPiBtYXggKCp3 aWR0aCwgV0lORE9XX0ZSQU1FX0NPTFVNTl9XSURUSCAodykpCisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAmJiBpbWctPmhlaWdodCA+IG1heCAoKndpZHRoLCBXSU5ET1dfRlJBTUVfTElO RV9IRUlHSFQgKHcpKSkpKQogCQkgICAgY3Vyc29yX3R5cGUgPSBIT0xMT1dfQk9YX0NVUlNPUjsK IAkJfQogCSAgICB9Ci0tIAoyLjE3LjEKCg== --0000000000000a8b8a05a393fffa--