Taskbar becomes unresponsive | Minecraft

Hello!
I recently started playing Minecraft again, but I noticed that during playing, my tasbask doesn’t respond anymore.
The rest of the system seems fine, I can still navigate in the browser, use Atl+Tab, but some apps, like Discord, and Krunner have a hard time running.
This issue occurs on Hybrid mode, as well as Nvidia only.
I’ve read this article but doesn’t seem to have the fixes I need.
I didn’t run the game in fullscreen, and on hybrid mode, it uses the iGPU.
Thanks for the help!

Edit: Exiting the game does solve the issue, it just takes time.

System details
> inxi -Fx
System:
  Host: endeavouros Kernel: 6.3.2-zen1-1-zen arch: x86_64 bits: 64
    compiler: gcc v: 13.1.1 Desktop: KDE Plasma v: 5.27.5 Distro: EndeavourOS
    base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82B5 v: Lenovo Legion 5 15ARH05
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN
    serial: <superuser required> UEFI: LENOVO v: EUCN39WW date: 09/09/2022
Battery:
  ID-1: BAT0 charge: 36.5 Wh (64.9%) condition: 56.2/60.0 Wh (93.7%)
    volts: 15.9 min: 15.4 model: SMP L19M4PC0 status: not charging
CPU:
  Info: 8-core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 2 rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB
  Speed (MHz): avg: 1407 high: 1497 min/max: 1400/2900 boost: enabled cores:
    1: 1397 2: 1397 3: 1400 4: 1497 5: 1400 6: 1400 7: 1400 8: 1397 9: 1397
    10: 1400 11: 1400 12: 1444 13: 1397 14: 1400 15: 1400 16: 1397
    bogomips: 92630
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Lenovo
    driver: nvidia v: 530.41.03 arch: Turing bus-ID: 01:00.0
  Device-2: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5
    bus-ID: 05:00.0 temp: 49.0 C
  Device-3: Syntek Integrated Camera driver: uvcvideo type: USB
    bus-ID: 1-3:3
  Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: modesetting,nvidia
    dri: radeonsi gpu: amdgpu,nvidia,nvidia-nvswitch resolution:
    1: 1080x1920~60Hz 2: 1920x1080~60Hz 3: 1920x1080~120Hz
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.7 DRM 3.52 6.3.2-zen1-1-zen) direct-render: Yes
Audio:
  Device-1: NVIDIA driver: snd_hda_intel v: kernel bus-ID: 01:00.1
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A
    bus-ID: 05:00.5
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel bus-ID: 05:00.6
  Device-4: Apple USB-C to 3.5mm Headphone Jack Adapter
    driver: hid-generic,snd-usb-audio,usbhid type: USB bus-ID: 1-1.2.3:6
  API: ALSA v: k6.3.2-zen1-1-zen status: kernel-api
  Server-1: sndiod v: N/A status: off
  Server-2: PipeWire v: 0.3.70 status: active
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel port: 2000 bus-ID: 03:00.0
  IF: eno1 state: down mac: hidden
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 04:00.0
  IF: wlan0 state: up mac: hidden
  Device-3: ASIX AX88179 Gigabit Ethernet driver: cdc_ncm type: USB
    bus-ID: 2-1.2.1:5
  IF: eth0 state: up speed: N/A duplex: half mac: hidden
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB bus-ID: 3-3:3
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 942.7 GiB used: 155.58 GiB (16.5%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFM512GDHTNI-87A0B
    size: 476.94 GiB temp: 36.9 C
  ID-2: /dev/sda vendor: Samsung model: PSSD T7 size: 465.76 GiB type: USB
Partition:
  ID-1: / size: 53.26 GiB used: 18.79 GiB (35.3%) fs: btrfs dev: /dev/dm-0
    mapped: luks-31eebd6b-ff72-41ce-952f-37e0d2e8c52a
  ID-2: /boot/efi size: 301.3 MiB used: 756 KiB (0.2%) fs: vfat
    dev: /dev/sda2
  ID-3: /home size: 292.97 GiB used: 136.78 GiB (46.7%) fs: btrfs
    dev: /dev/dm-1 mapped: luks-86a68e7d-5a45-4f13-bd51-a7d1c6bec23a
  ID-4: /var/log size: 53.26 GiB used: 18.79 GiB (35.3%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-31eebd6b-ff72-41ce-952f-37e0d2e8c52a
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 80.9 C mobo: N/A gpu: amdgpu temp: 50.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 433 Uptime: 4m Memory: available: 15 GiB used: 4.88 GiB (32.5%)
  Init: systemd Compilers: gcc: 13.1.1 clang: 15.0.7 Packages: 1369
  Shell: fish v: 3.6.1 inxi: 3.3.27