Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 120333

Summary: [Browser] SWT send WM_PAINT events twice when user navigates away from a SWT Browser
Product: [Eclipse Project] Platform Reporter: Guo Yun <guoyun>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Grant Gayed <grant_gayed>
Severity: normal    
Priority: P3 CC: carolynmacleod4, fraenkel, veronika_irvine, wuhaijie
Version: 3.0.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
My test snippet code none

Description Guo Yun CLA 2005-12-12 03:11:55 EST
I write a SWT Browser demo, and found that the Browser repaint itself twice When I navigated form it. Browser repaint it first time when it lost focus, second when it got focus. 
You can refer to the following steps to see it:
1. Add a test line at beginning of  org\eclipse\swt\ole\win32\oleClientSite.java\onPaint() method: "System.out.println("onPaint");"
2. Running the snippet code, and notes on the console;
3. Navigate to other application(better to eclipse, can see the console output), see there is a "onPaint" string output to console. 
4. Navigate to the test browser, another "onPaint" string output to console.

I think the repaint action at browser losting focus is redundant. Is it right?
Comment 1 Guo Yun CLA 2005-12-12 03:21:16 EST
Created attachment 31550 [details]
My test snippet code

upload my test snippet code here.
Comment 2 Steve Northover CLA 2005-12-12 12:17:36 EST
There may be no way to stop it.  IE draws when it wants to draw.  We need to determine whether we are causing the excess drawing or IE is doing it.

Guo Yun, you will need to provide a stand alone snippet that demonstrates the problem.
Comment 3 Grant Gayed CLA 2009-09-25 17:01:05 EDT
Moving report to triage, see http://www.eclipse.org/swt/triage.php
for more info about swt bug handling.
Comment 4 Leo Ufimtsev CLA 2017-08-03 12:27:07 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 5 Eclipse Genie CLA 2019-10-11 01:52:25 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.