Bug 380389 - Java Swing Windows is not redraw on visibility change.
Summary: Java Swing Windows is not redraw on visibility change.
Status: REOPENED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.9.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-31 10:02 UTC by Stephane Martin
Modified: 2021-12-15 16:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
source code (11.49 KB, application/x-compressed-tar)
2017-05-31 10:02 UTC, Stephane Martin
Details
binary (2.80 KB, application/x-java-archive)
2017-05-31 10:04 UTC, Stephane Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Martin 2017-05-31 10:02:09 UTC
Created attachment 105795 [details]
source code

Description of the bug: 

With java swing:
- I open first time a window (JFrame) with a JLabel and value.
- I close it
- I update the value of the JFrame
- I reopen It

Result:
 The value is old.
Expected
 The value is updated.


More details:
When I use another window manager such as openBox, metacity, xfwm, etc. It works as expected. When I launch kwin with: KWIN_COMPOSE=X kwin --replace & It works too.

It works as expected with windows and mac too.

I've same issue with Centos 7 and kwin 4.11.19.
Comment 1 Stephane Martin 2017-05-31 10:04:49 UTC
Created attachment 105796 [details]
binary

Tested with jre 1.8.0_112 and 1.8.0_121
Comment 2 Stephane Martin 2017-05-31 10:09:10 UTC
*I update the value in the JLabel which is inside the JFrame
Comment 3 Stephane Martin 2017-05-31 10:11:58 UTC
ps2 : you can resize the windows to force the redraw and see the new value.
Comment 4 Martin Flöser 2017-06-17 12:05:38 UTC
how does it look like in another compositor. All the WMs you mention are non composited.
Comment 5 Stephane Martin 2017-06-19 07:47:54 UTC
Martin Flöser : What do you mean about compositor ?

3D compositor ? It works with gnome-shell and unity.

If you have another example, I can test.
Comment 6 Stephane Martin 2017-06-19 09:28:28 UTC
No problem with compton too.
Comment 7 kde.org 2021-11-06 19:42:19 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 8 Bug Janitor Service 2021-11-21 04:39:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2021-12-06 04:39:07 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 10 Stephane Martin 2021-12-15 16:06:57 UTC
(In reply to kde.org from comment #7)
> This issue report is quite old. Can you please confirm, that it still
> persists with KDE 5.23?

Hello,
Sorry for the late anwser.

I can reproduce in 5.23.4 on X11 or Wayland. 

Best regards,
Stephane Martin.