mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JRE-353 Fedora 25 + XMonad rendering issues
Added support for Xmonad WM
(cherry picked from commit c690c3c7fdf1390e6b1a8d388ff752a09391ae3c)
(cherry picked from commit 6851dc3441)
This commit is contained in:
committed by
alexey.ushakov@jetbrains.com
parent
4b81e80383
commit
08e88bb6bf
@@ -108,7 +108,8 @@ final class XWM
|
||||
LG3D_WM = 13,
|
||||
CWM_WM = 14,
|
||||
MUTTER_WM = 15,
|
||||
UNITY_COMPIZ_WM = 16;
|
||||
UNITY_COMPIZ_WM = 16,
|
||||
XMONAD_WM = 17;
|
||||
public String toString() {
|
||||
switch (WMID) {
|
||||
case NO_WM:
|
||||
@@ -141,6 +142,8 @@ final class XWM
|
||||
return "CWM";
|
||||
case MUTTER_WM:
|
||||
return "Mutter";
|
||||
case XMONAD_WM:
|
||||
return "Xmonad";
|
||||
case UNDETERMINED_WM:
|
||||
default:
|
||||
return "Undetermined WM";
|
||||
@@ -606,13 +609,19 @@ final class XWM
|
||||
return isNetWMName("Mutter") || isNetWMName("GNOME Shell");
|
||||
}
|
||||
|
||||
static boolean isXmonad() {
|
||||
return isNetWMName("xmonad");
|
||||
}
|
||||
|
||||
static int awtWMNonReparenting = -1;
|
||||
static boolean isNonReparentingWM() {
|
||||
if (awtWMNonReparenting == -1) {
|
||||
awtWMNonReparenting = (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) ? 1 : 0;
|
||||
}
|
||||
return (awtWMNonReparenting == 1 || XWM.getWMID() == XWM.COMPIZ_WM
|
||||
|| XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM);
|
||||
|| XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM ||
|
||||
XWM.getWMID() == XWM.XMONAD_WM
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -803,6 +812,8 @@ final class XWM
|
||||
awt_wmgr = XWM.ICE_WM;
|
||||
} else if (isUnityCompiz()) {
|
||||
awt_wmgr = XWM.UNITY_COMPIZ_WM;
|
||||
} else if (isXmonad()) {
|
||||
awt_wmgr = XWM.XMONAD_WM;
|
||||
}
|
||||
/*
|
||||
* We don't check for legacy WM when we already know that WM
|
||||
@@ -1368,6 +1379,7 @@ final class XWM
|
||||
break;
|
||||
case NO_WM:
|
||||
case LG3D_WM:
|
||||
case XMONAD_WM:
|
||||
res = zeroInsets;
|
||||
break;
|
||||
case UNITY_COMPIZ_WM:
|
||||
|
||||
Reference in New Issue
Block a user