Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Intellij is flickering heavily making it hard to work #9355

Open
4 of 6 tasks
kliarist opened this issue Feb 6, 2025 · 11 comments
Open
4 of 6 tasks

Intellij is flickering heavily making it hard to work #9355

kliarist opened this issue Feb 6, 2025 · 11 comments
Labels
bug Something isn't working

Comments

@kliarist
Copy link

kliarist commented Feb 6, 2025

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Definitely a regression - something broke after update (requires bisect)

System Info and Hyprland Version

System/Version info
Hyprland 0.47.2 built from branch  at commit 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff  (version: bump to 0.47.2).
Date: Sun Feb 2 00:47:17 2025
Tag: v0.47.2, commits: 5767
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


no flags were set


System Information:
System name: Linux
Node name: archlinux
Release: 6.12.12-1-lts
Version: #1 SMP PREEMPT_DYNAMIC Sat, 01 Feb 2025 18:47:29 +0000


GPU information:
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c4) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

Description

I have recently updated my archlinux and got the latest hyprland version. Since then, Intellij is behaving badly mouse is unresponsive around the edges of the Intellij window. I am using Intellij Idea 2-24.3.2.2 (Ultimate Edition). I am unable to work like this.

How to reproduce

hyprland_config_dump.txt

video

Attach not paste

  • I understand that all text files must be attached, and not pasted directly. If not respected, this issue will likely get closed as spam

Checklist of files to include below

  • Hyprland config - hyprctl systeminfo -c (always include)
  • Crash report (always include in case of crash)
  • Video (always include in case of a visual bug)
  • Logs (might contain useful info such as errors)

Additional info & File uploads

No response

@kliarist kliarist added the bug Something isn't working label Feb 6, 2025
@kliarist
Copy link
Author

kliarist commented Feb 7, 2025

anyone ?

@UjinT34
Copy link
Contributor

UjinT34 commented Feb 7, 2025

#9289 (comment)

@kliarist
Copy link
Author

kliarist commented Feb 7, 2025

@UjinT34 where do I set this please?

@kliarist
Copy link
Author

kliarist commented Feb 7, 2025

@UjinT34 Still the same .

I have configured my hyprland.conf to the below

render {
  allow_early_buffer_release = 0
}

@mzonski
Copy link

mzonski commented Feb 7, 2025

IntelliJ works for me the best with this settings. Also make sure you're running IntelliJ with Wayland support

input.follow_mouse = 2
// find in files
windowrulev2=noinitialfocus,class:jetbrains-toolbox, floating:1
windowrulev2=noinitialfocus, class:(jetbrains-)(.*), title:^$, initialTitle:^$, floating:1
// other dialogs
windowrulev2=center, class:(jetbrains-)(.*), title:^$, initialTitle:^$, floating:1
windowrulev2=center, class:(jetbrains-)(.*), initialTitle:(.+), floating:1

@ryincler
Copy link

ryincler commented Feb 8, 2025

Bisected this issue. First bad commit seems to be 354d459

I was only able to reproduce this sort of attention flicker with Intellij running in xwayland, which makes sense given the problematic commit.

@kliarist
Copy link
Author

kliarist commented Feb 8, 2025

IntelliJ works for me the best with this settings. Also make sure you're running IntelliJ with Wayland support

input.follow_mouse = 2
// find in files
windowrulev2=noinitialfocus,class:jetbrains-toolbox, floating:1
windowrulev2=noinitialfocus, class:(jetbrains-)(.*), title:^$, initialTitle:^$, floating:1
// other dialogs
windowrulev2=center, class:(jetbrains-)(.*), title:^$, initialTitle:^$, floating:1
windowrulev2=center, class:(jetbrains-)(.*), initialTitle:(.+), floating:1

@mzonski Thanks for suggesting! I dont like Intellij in Wayland as it is not 100% there yet. Drag and drop doesn't work and pop ups are weird behaving etc. Sticking to XWayland for the time being.

@kliarist
Copy link
Author

kliarist commented Feb 8, 2025

nse given t

@ryincler any way to work around it ? And also how to go about raising a regression bug ?

@mzonski
Copy link

mzonski commented Feb 8, 2025

IntelliJ works for me the best with this settings. Also make sure you're running IntelliJ with Wayland support

input.follow_mouse = 2
// find in files
windowrulev2=noinitialfocus,class:jetbrains-toolbox, floating:1
windowrulev2=noinitialfocus, class:(jetbrains-)(.*), title:^$, initialTitle:^$, floating:1
// other dialogs
windowrulev2=center, class:(jetbrains-)(.*), title:^$, initialTitle:^$, floating:1
windowrulev2=center, class:(jetbrains-)(.*), initialTitle:(.+), floating:1

@mzonski Thanks for suggesting! I dont like Intellij in Wayland as it is not 100% there yet. Drag and drop doesn't work and pop ups are weird behaving etc. Sticking to XWayland for the time being.

with some additional Hyprland rules, IntelliJ can work without flickering tooltips by preventing focus stealing on floating windows. While the rules could be more targeted, this configuration effectively handles tooltips and "Find in Files" dialogs

windowrulev2=noinitialfocus, class:(jetbrains-)(.*), floating:1

btw. by looking at this line it's clear what's happening and why this rule is aid to the problem

@ryincler
Copy link

ryincler commented Feb 9, 2025

nse given t

@ryincler any way to work around it ? And also how to go about raising a regression bug ?

There are a few different options to work around it:

  1. Use windowrules for noinitialfocus on the attention-grabbing dialogs as mentioned by @mzonski
  2. Run it in wayland, rather than xwayland
  3. Patch XWaylandManager.cpp to have the old behaviour for the NoInitialFocus

An interesting (but obvious) note about the hover dialogs that steal focus is that they have the property _NET_WM_WINDOW_TYPE_DIALOG which causes the current implementation to have this issue.

@kliarist
Copy link
Author

kliarist commented Feb 9, 2025

@ryincler @mzonski fantastic, I have tried the windowrules for noinitialfocus and it seems to solve it. I will go with that for the time being.

many thanks to both for bothering to help! appreciated

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants