Bug 120333 - [Browser] SWT send WM_PAINT events twice when user navigates away from a SWT Browser
Summary: [Browser] SWT send WM_PAINT events twice when user navigates away from a SWT ...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact: Grant Gayed CLA
URL:
Whiteboard: stalebug
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2005-12-12 03:11 EST by Guo Yun CLA
Modified: 2019-10-11 01:52 EDT (History)
4 users (show)

See Also:


Attachments
My test snippet code (1.96 KB, application/octet-stream)
2005-12-12 03:21 EST, Guo Yun CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.