From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: make-pointer-invisible on Windows Date: Mon, 29 Jun 2015 17:43:50 +0300 Message-ID: <838ub260d5.fsf@gnu.org> References: <558A75C6.7040003@gmx.at> <83zj3pdusu.fsf@gnu.org> <558AEB8D.4070603@gmx.at> <83k2usewtv.fsf@gnu.org> <558BA156.6090508@gmx.at> <83a8vnesqm.fsf@gnu.org> <558CF75E.90801@gmx.at> <83wpyqdflh.fsf@gnu.org> <558D181A.4070402@gmx.at> <83twtudd0i.fsf@gnu.org> <83wpyn6g47.fsf@gnu.org> <559113CD.2070803@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435589068 18580 80.91.229.3 (29 Jun 2015 14:44:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 14:44:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 29 16:44:20 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9aID-000155-97 for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2015 16:44:17 +0200 Original-Received: from localhost ([::1]:42551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9aIC-0005BZ-Jd for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2015 10:44:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9aHr-0005B8-HO for emacs-devel@gnu.org; Mon, 29 Jun 2015 10:43:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9aHm-0002CW-IX for emacs-devel@gnu.org; Mon, 29 Jun 2015 10:43:55 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:54400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9aHm-0002C2-AX for emacs-devel@gnu.org; Mon, 29 Jun 2015 10:43:50 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NQP00800NHTMT00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 29 Jun 2015 17:43:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQP0082XNKZMH10@a-mtaout20.012.net.il>; Mon, 29 Jun 2015 17:43:47 +0300 (IDT) In-reply-to: <559113CD.2070803@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187640 Archived-At: > Date: Mon, 29 Jun 2015 11:45:49 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > > No mystery here, it turns out. On XP, we get the WM_ERASEBKGND > > message when (portions of) the Emacs frame previously covered by other > > windows are uncovered. In response, we erase the rectangle specified > > by the message, and we do that from the input thread, i.e. this works > > even if the main thread is busy. > > I don't think it's worth changing this but in principle we could erase > from the main thread as well? We could, but that brings the difficulty I mentioned below, with collecting several such redraws of different rectangles, and repainting them all at once. Not rocket science, but needs some work. > That is, erasing without painting doesn't make much sense anyway. Maybe, I really know nothing about this. > > On Windows 7, neither WM_ERASEBKGND nor WM_PAINT are sent, except when > > the Emacs frame is moved or resized. So we don't erase the rectangle, > > and the text remains on screen. > > So you do get a blank rectangle when you (de-)maximze the frame I > suppose. Of course.