Jetbrains IDE Rider/CLion

Hey!

I went for another round of Hyprland since KDE got very unstable with recent Nvidia drivers.
All is well, however one problem is still the same when I left and I made a ticket on github in the past: floating windows close when mouse leaves bounding box · Issue #7261 · hyprwm/Hyprland · GitHub

There’s still no satisfactory solution to this and I still think it’s not that much of a problem to fix as there are so many control mechanisms in the config but none that really fits.

A workaround is still: follow_mouse = 0 and float_switch_override_focus = 0
But man, this just feels awful, having no follow_mouse sucks.

To sum the current problem up:

  • In Rider, open CTRL+Shift+F to find in files
  • with default settings, the window erratically closes when moving the mouse

Same goes for CLion.

And please none of the, it’s XWayland excuses. Other compositors can handle it too and have the same follow_mouse/focus logic.
In the github post I’ve also added some proof of concept that this indeed just a faulty focusWindow logic.

I’ve also tried some windowrules posted but none where dealing with this problem.

I’m actually not sure if a forum post fits better for this or a github issue.

Commenting just to not forget to check, will edit when can.

I use intellij idea, this is what i had to change first to make it work a bit betyer, need to check if rider works the same.

-Dawt.toolkit.name=WLToolkit

In IDE VM options (Help | Edit Custom VM Options)

Just tested if I remember correctly or anything has changed. Wayland version actually has the same problem. ^^
Jetbrains is totally sleeping on Wayland, it still doesn’t even have drag&drop support. When looking at their issue tracker, it looks to me no work is done or progress has happened. :melting_face:

A better setting I’ve found right now is follow_mouse = 2 and float_switch_override_focus = 0
That at least keeps scrolling intact when mouse changes focus. Still not the best. I hope this can just get fixed or a proper workaround is found.

As far as I understand it, Riders “Find in files” window closes on click and follow_mouse=1 focus change simulates such a click so rider thinks it should close the window. What my code fix was doing is not refocus when the initialClass is the same. Vaxry wasn’t satisfied though for whatever reason. I thought the fix was very specific with also looking for floating windows but apparently not.

It’s still such a mess. :frowning:

  • “Find in Files” even when docked often has a click through so you scroll the code file behind and not the find in files list.
  • Dropdowns in the menu have to be manually clicked to update. (that has to do with follow_mouse set to 0 - i don’t think it should affect that though
  • Dragging out a tab to detach from main window is next to impossible.
  • Even just ordering the tabs is finicky at best. Erratically it snaps to some position and that’s that.

Hey. Could you please tell me where i can change follow_mouse ? These are not valid hyprland config options for me.