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 20:40:48 +0300 Message-ID: <83fv5a4dlr.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> <838ub260d5.fsf@gnu.org> <55917D50.9030701@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435599674 6331 80.91.229.3 (29 Jun 2015 17:41:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 17:41:14 +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 19:41:02 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 1Z9d3F-0004Yc-Qh for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2015 19:41:01 +0200 Original-Received: from localhost ([::1]:43404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9d3F-0008UE-BF for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2015 13:41:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9d35-0008T1-9c for emacs-devel@gnu.org; Mon, 29 Jun 2015 13:40:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9d31-00071L-JK for emacs-devel@gnu.org; Mon, 29 Jun 2015 13:40:50 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:39201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9d31-0006yL-AA for emacs-devel@gnu.org; Mon, 29 Jun 2015 13:40:47 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NQP00M00VK0GJ00@mtaout27.012.net.il> for emacs-devel@gnu.org; Mon, 29 Jun 2015 20:36:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQP00IUBVLNBD40@mtaout27.012.net.il>; Mon, 29 Jun 2015 20:36:59 +0300 (IDT) In-reply-to: <55917D50.9030701@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 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:187648 Archived-At: > Date: Mon, 29 Jun 2015 19:16:00 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > Silly me. It's obviously Windows who does the erasing part _before_ > sending us the WM_ERASEBKGND message and not us erase after receiving > that message. Maybe I'm missing something, but this: case WM_ERASEBKGND: f = x_window_to_frame (dpyinfo, hwnd); if (f) { HDC hdc = get_frame_dc (f); GetUpdateRect (hwnd, &wmsg.rect, FALSE); w32_clear_rect (f, hdc, &wmsg.rect); <<<<<<<<<<<<<<<<<<<< release_frame_dc (f, hdc); looks to me like us erasing the rectangle.