-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntelliJ Idea show weird blank screen #595
Comments
Other java programs, like the arduino ide, seem to be fairly broken in sway, though in different ways. |
|
This is a known problem with non-re-parenting window managers:
|
I tried both _JAVA_AWT_WM_NONREPARENTING=1 and wmname LG3D with neither one working. Are there any further suggestions for fixing this? |
I have this issue too. |
Please check if this issue is still relevant with sway 1.0, investigate it and send a patch. |
Yeap, new version fixed this issue. Now I'll be waiting for android studio emulator fix patch. Thanks. |
2018.2 did not fix it for me. Bummer |
Investigate! Ask for help on IRC! Send a patch!
Now idea what "2018.2" refers to. |
I am testing against webstorm and the latest release is 2018.2, as of 22 July 2018 (2 days ago). AFAIK, there are typically two methods of fixing this blank display issue, setting export _JAVA_AWT_WM_NONREPARENTING=1 and/or wmname LG3D. But generally, it is reported that some of the java based applications have display issues in linux while using RDP (xrdp to fedora in my case). (I'm not here for sway but rather the blank screen while using RDP to a linux box.) I am interested in knowing if there are any further solutions that may have emerged lately. I'm not finding anything out there other than the two listed solutions, or moving away from xrdp. Thanks! Jim |
I have the same issue. I am using Microsoft remote desktop application (ver. 10.2.1) on Mac OS X Sierra to connect to my Linux box which is a Debian 9 i686. Any idea ? |
|
@SirCmpwn What do you mean by, "Investigate! Ask for help on IRC! Send a patch!"? Is that an auto-reply? Cheers. |
No, it's not an automated reply, it's a legitimate call for help. We don't have time to investigate all issues here, so we call for help. We try to encourage contributions. Please try to debug this, please send patches! |
The fix of |
@ricejamesh ask @ sway on IRC and if possible send a patch! @fabean Thanks, that works on Eclipse`s menu! So works too:
|
Unfortunately still experiencing this issue on master as of Sway 1.0-beta. |
_JAVA_AWT_WM_NONREPARENTING=1 idea |
I just switched to Sway from i3 and experienced the same issue. For me, setting _JAVA_AWT_WM_NONREPARENTING=1 also fixed it. Maybe Sway should set it by default? No clue what it does - is this something that needs to be fixed in Sway or in IntelliJ? Anyway, thanks for the fix! |
Its Java's issue: |
@lxbarbosa thanks for the link. Looking at the issue you're referring to is that it is resolved with the addition of the flag |
@lxbarbosa Thank you very much for the code!!! This worked for me! if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
_JAVA_AWT_WM_NONREPARENTING=1 sway
fi |
Fixes issue swaywm#595 . From what I understand, Java expects non-reparenting WMs to set this environmental variable in order for applications like IntelliJ Idea to work, since it has no way to detect this on its own.
Just a note for other users from Slovakia using D-Launcher app to signing documents with qualified electronic signiture (KEP). Just if someone wants to debug this and wants to install D-Launcher, they can using the following commands: URL="https://www.ditec.sk/$(curl -s https://www.ditec.sk/produkty/informacie_pre_pouzivatelov_aplikacii_pre_kep | grep -Po '[.]{2}/\K[^"]+DLauncher.linux.x86_64.run')"
curl -sLo /tmp/d.launcher.run "$URL"
chmod a+x /tmp/d.launcher.run
/tmp/d.launcher.run # Follow the GUI instructions
rm -rf /tmp/d.launcher.run
_JAVA_AWT_WM_NONREPARENTING=1 ~/.ditec/dlauncher-bin/dLauncher Indeed, using {
"id": 29,
"name": " ",
"rect": {
"x": 2842,
"y": 527,
"width": 75,
"height": 50
},
"focused": false,
"focus": [],
"border": "csd",
"current_border_width": 2,
"layout": "none",
"orientation": "none",
"percent": 0.0018513033175355448,
"window_rect": {
"x": 0,
"y": 0,
"width": 75,
"height": 50
},
"deco_rect": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
},
"geometry": {
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"window": 48234567,
"urgent": false,
"floating_nodes": [],
"sticky": false,
"type": "floating_con",
"fullscreen_mode": 0,
"pid": 187454,
"app_id": null,
"visible": true,
"marks": [],
"max_render_time": 0,
"window_properties": {
"class": "com-sun-javaws-Main",
"instance": "sun-awt-X11-XDialogPeer",
"title": " ",
"transient_for": 48234560
},
"nodes": []
} |
Is there any possibility of including this into sway config or something like that? |
As of this writing the wiki suggests adding the following to ~/.profile. if [ "$XDG_SESSION_DESKTOP" = "sway" ] ; then
# https://github.com/swaywm/sway/issues/595
export _JAVA_AWT_WM_NONREPARENTING=1
fi On a fresh install of Ubuntu 22.04, adding it to Anyway, adding the snippet that sets |
The issue is closed, and this looks more of a distro issue than a sway issue. You will have more luck with posting your question at a more relevant place. |
My intention was mainly to put a fix that worked for me in the place that I looked for a fix beforehand, since I’m guessing others would look at this issue too.
Any explanation about why adding it in `.bashrc` is needed in Ubuntu specifically, or suggestions of something better to do instead of that, would just be gravy.
… On Jul 7, 2022, at 8:09 AM, Simon Zeni ***@***.***> wrote:
The issue is closed, and this looks more of a distro issue than a sway issue. You will have more luck with posting your question at a more relevant place.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
@Ryan1729 -- GDM3 does not source |
Is there a pattern the Java applications can use to account for Sway/non-reparenting WMs? One application I'm using that uses Swing/JFrame, seems to only suffer on windows it displays other than the initial one (and same for a splash screen in another application; possibly for the same reason/pattern). I found that adding a |
Don't know if it apply's to other java apps but I test IntelliJ in weston and it doesn't work quite well but at least it shows the window content. Also the window should the attach screenshot should be a modal floating window but it appears to be trying to render it as a normal window.
OS:
Linux lucy 4.5.1-1-ARCH #1 SMP PREEMPT Thu Apr 14 19:19:32 CEST 2016 x86_64 GNU/Linux
Sway Package version
0.5-2
WLC Package version
0.0.2-1
XWayland Package version
1.18.3-1
The text was updated successfully, but these errors were encountered: