Compare commits

...

1 Commits

Author SHA1 Message Date
Maxim Kartashev
db2316f324 JBR-6830 Poor performance with KDE Plasma 6 X11
Use -Dwatch.desktop.geometry=false as a workaround until the KWin issue
is fixed
2024-06-27 16:36:09 +04:00

View File

@@ -614,6 +614,10 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
}
}
@SuppressWarnings("removal")
private static final boolean checkDesktopGeometry = !"false".equals(AccessController.doPrivileged(
new sun.security.action.GetPropertyAction("watch.desktop.geometry", "true")));
@SuppressWarnings("removal")
void init() {
awtLock();
@@ -641,7 +645,7 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
@Override
public void dispatchEvent(XEvent ev) {
if (ev.get_type() == XConstants.ConfigureNotify ||
(ev.get_type() == XConstants.PropertyNotify &&
(checkDesktopGeometry && ev.get_type() == XConstants.PropertyNotify &&
ev.get_xproperty().get_atom() == XWM.XA_NET_DESKTOP_GEOMETRY.getAtom())) // possible DPI change
{
awtUnlock();