Spyke

Posts

[i3] I think I'm currently in a state where I'm mostly contempt with my ever-evolving rice (more images in body text)

listening to music through mpd & ymuse + cava, cli-visualizer & pavucontrol

desktop with rofi, dunst and terminals (classic rice showcase picture)

looking at some rices with cute socks while doing garbage collection
also obviously with transparency turned off, so the images don't get weirdly half-transparentized

trying to understand sways codebase, so I can try to implement custom shaders for swayfx (pain)

Details

dotfiles (nix flake)
wallpapers

View original on feddit.de

[solved] How to unfocus a frozen application that grabbed the pointer/keyboard in Xorg?

I'm posting here, because i have no idea how to search for this.

When exploring GTK programming, I ran into a very specific problem:

I created an application that crashes when i open a GtkDropDown, so to debug the crash I ran my app inside GDB. When GDB notices an application crashing, it freezes it, so i can analyze the state in which it crashed. The GtkDropDown grabs the pointer, like rofi or i3lock grab the pointer to prevent the window manager from exercising any keyboard shortcuts. Problem is now, the application gets frozen while the pointer is grabbed, so I'm basically locked out of my window manager.

To close the application, I can just log into a TTY and kill the GDB process, but I would like to have a simpler solution, that possibly doesn't kill the application.

Is there a way with Xorg to get out of such a situation without switching to the TTY? If not, why can a single user application completely prevent you from using anything in your graphical environment?

Because Xorg bad? Should I switch to Wayland?

Solution (thanks to @[email protected]):

  • switch to TTY and log in
  • export DISPLAY=':0'
  • setxkbmap -option grab:break_actions
  • xdotool key XF86Ungrab
View original on feddit.de

You reached the end