Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

IntelliJ Idea (goland) stops responding to keystrokes in context interaction

Open labi-le opened this issue 3 years ago • 8 comments

after changing the file name, the code editor does not respond to keyboard presses

_JAVA_AWT_WM_NONREPARENTING is enabled

https://user-images.githubusercontent.com/65619560/198860124-542d0524-0c8e-420b-97c3-34f9c3b50fb6.mp4

labi-le avatar Oct 30 '22 02:10 labi-le

how did you even manage to get intelliJ IDEA running!? for me it just breaks....i have tried export _JAVA_AWT_WM_NONREPARENTING=1 in ~/.profile still no success :"(

System-x64 avatar Oct 31 '22 16:10 System-x64

how did you even manage to get intelliJ IDEA running!? for me it just breaks....i have tried export _JAVA_AWT_WM_NONREPARENTING=1 in ~/.profile still no success :"(

i run ide with jetbrains toolbox

labi-le avatar Oct 31 '22 16:10 labi-le

OMG!! THANK YOU SO MUCH DUDE!!!!! it worked....have been trying to use intellij in hyprland for days

android-studio still doesnt work toh..

System-x64 avatar Oct 31 '22 16:10 System-x64

Press Help | Edit Custom VM options... add

-Drecreate.x11.input.method=true

restart ide

*partially solution

labi-le avatar Oct 31 '22 19:10 labi-le

This happens after a popup menu missing. For example, if you use ctrl+shift+f to search texts and press Enter to open a file. Then the search box is missing, and it seems that the focus of editing is still in the search box and not come back to the editor area. Temporary solution is right click in file tree (any folder or file) and select refactor or new or other things which can produce a new popup and make the focus back, then cancel the popup and things will be fine.

dragove avatar Dec 25 '22 05:12 dragove

Add _JAVA_AWT_WM_NONREPARENTING=1 in profile or add

-Drecreate.x11.input.method=true
-Dawt.ime.disabled=true

in vmoptions didn't help in my situation.

dragove avatar Dec 25 '22 05:12 dragove

Reformatting code ctrl+alt+l also represent that issue in intellij idea.

pltanton avatar Dec 28 '22 00:12 pltanton

I notice, that you got correct behavior if your mouse pointer is over the popup before pop-up window closed. It relates to that comment https://github.com/hyprwm/Hyprland/issues/1229#issuecomment-1353216339 . As a extremely dirty агзе hack we can make a script, that monitor for new floating windows with intellij-idea class, which will move cursor in center of that windows D:

Or even better script, that will watch for intellij-idea window closes and if other intellij-idea client is in focus it will "refocus" on that client. That hack looks better imo, but I can't find any hyprctl command to implement it.

pltanton avatar Dec 28 '22 00:12 pltanton

https://github.com/hyprwm/Hyprland/issues/1317#issuecomment-1386074867 may help ones who wanna a better experience on jb's IDEs.

quote configuration:

windowrulev2 = forceinput,class:^jetbrains-
windowrulev2 = windowdance,class:^jetbrains-

dragove avatar Feb 11 '23 05:02 dragove

I use the following rules:

hypr.conf

# Jetbrains products
windowrulev2 = float,floating:0,class:^(jetbrains-.*),title:^(win.*)
windowrulev2 = float,class:^(jetbrains-.*),title:^(Welcome to.*)
windowrulev2 = center,class:^(jetbrains-.*),title:^(Replace All)$
windowrulev2 = forceinput,class:^(jetbrains-.*)
windowrulev2 = windowdance,class:^(jetbrains-.*) # allows IDE to move child windows

Env: _JAVA_AWT_WM_NONREPARENTING=1

Custom VM opt:

-Drecreate.x11.input.method=true
-Dawt.ime.disabled=true

hikkidev avatar Feb 16 '23 04:02 hikkidev

@System-x64 for android studio you can use @hikkidev solution (thank you very much 💪🏻 ) , but replacing jetbrains for android. At least in my case, this improved considerably:

# android studio
windowrulev2 = float,floating:0,class:^(android-.*),title:^(win.*)
windowrulev2 = float,class:^(android-.*),title:^(Welcome to.*)
windowrulev2 = center,class:^(android-.*),title:^(Replace All)$
windowrulev2 = forceinput,class:^(android-.*)
windowrulev2 = windowdance,class:^(android-.*) # allows IDE to move child windows

android10 avatar Jul 01 '23 13:07 android10

JetBrains IDE's now have experimental Wayland support Please try the versions in their Early Acess Program and see if they fix this issue. Relevant Download links: https://www.jetbrains.com/idea/nextversion/ https://www.jetbrains.com/pycharm/nextversion/ https://www.jetbrains.com/go/nextversion/

MightyPlaza avatar Jul 09 '24 20:07 MightyPlaza