unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 55208@debbugs.gnu.org
Subject: bug#55208: 29.0.50; MS-Windows GUI selection dialogs and double-buffering
Date: Sat, 07 May 2022 10:40:12 +0300	[thread overview]
Message-ID: <83czgpzt7n.fsf@gnu.org> (raw)
In-Reply-To: <87levkpwma.fsf@yahoo.com> (message from Po Lu on Mon, 02 May 2022 09:10:53 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Cc: 55208@debbugs.gnu.org
> Date: Mon, 02 May 2022 09:10:53 +0800
> 
> But try adding some code along the following lines under `WM_PAINT' in
> `w32_msg_pump':

w32_msg_pump doesn't handle WM_PAINT, so I'm not sure what you mean
here.  Also, AFAIK w32_msg_pump runs in a separate thread, so is it
safe to call BitBlt from that thread?

>   	if (popup is active)
> 	  {
> 	    enter_crit ();
> 	    if (FRAME_OUTPUT_DATA (f)->paint_dc)
> 	      {
> 		BeginPaint (hwnd, &paintStruct);
> 
> 		BitBlt (FRAME_OUTPUT_DATA (f)->paint_buffer_handle,
> 			0, 0, FRAME_PIXEL_WIDTH (f), FRAME_PIXEL_HEIGHT (f),
> 			FRAME_OUTPUT_DATA (f)->paint_dc, 0, 0, SRCCOPY);
> 
> 		EndPaint (hwnd, &paintStruct);
> 	      }
> 	    leave_crit ();
> 
> 	    return 0;
> 	  }
> 
> (I don't know how to implement the "popup is active" part,
> unfortunately.)

I do know, but the above issues bother me more, so I didn't yet try
this.

Thanks.





  parent reply	other threads:[~2022-05-07  7:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-01 16:03 bug#55208: 29.0.50; MS-Windows GUI selection dialogs and double-buffering Eli Zaretskii
2022-05-02  1:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-02  2:29   ` Eli Zaretskii
2022-05-02  2:41     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-07  7:40   ` Eli Zaretskii [this message]
2022-05-07  8:26     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-07  9:02       ` Eli Zaretskii
2022-05-07  9:19         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-07 10:06           ` Eli Zaretskii
2022-05-07 10:23             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-07 10:41               ` Eli Zaretskii
2022-05-08  5:33                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-08  6:26                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83czgpzt7n.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=55208@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).