Fix for vmware window dying in hyprland

Опубликовано: 26 Июнь 2026
на канале: Chun
523
14

Let me preface this with 2 things. I am newish to Linux, so if you know a better way then do that. This worked for me. And two, do not try and find me.

(vmware:12379): Gdk-WARNING **: 21:27:14.747: The program 'vmware' received an X Window System error.

This probably reflects a bug in the program.

The error was 'BadValue (integer parameter out of range for operation)'.

(Details: serial 18128 error_code 2 request_code 135 (XKEYBOARD) minor_code 8)

(Note to programmers: normally, X errors are reported asynchronously;

that is, you will receive the error a while after causing it.

To debug your program, run it with the GDK_SYNCHRONIZE environment

variable to change this behavior. You can then get a meaningful

backtrace from your debugger if you break on the gdk_x_error() function.)

You need a script to stop the window from breaking and so you don't have to manually type anything every time to fix it.

Create a file using nano at /usr/local/bin. Type nano/usr/bin/vmware-safe.

Paste this text verbatim into your file you just created:

#!/bin/bash

vmware-safe: Launch VMware safely under Wayland/Xwayland

Save current XKB options

CURRENT_XKB=$(setxkbmap -query | grep options | awk '{print $2}')

Disable advanced XKEYBOARD options to prevent VMware crash

setxkbmap -option ""

Launch VMware

vmware

Restore original XKB options

if [ -n "$CURRENT_XKB" ]; then

setxkbmap -option "$CURRENT_XKB"

else

setxkbmap -option ""

fi

Side note: labelled things so you can read everything easy.

3) Run vmware-safe to launch the fixed version of vmware.

This should fix the problem.