naelstrof / slop

slop (Select Operation) is an application that queries for a selection from the user and prints the region to stdout.
Other
852 stars 58 forks source link

slop can't access a private resource #6

Closed ghost closed 10 years ago

ghost commented 10 years ago

As the title says, slop can't access some private resource.

~ > slop
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  33 (X_GrabKey)
  Serial number of failed request:  15
  Current serial number in output stream:  16

This might be also useful

~ > X -version                                                                                     ⏎

X.Org X Server 1.15.0
Release Date: 2013-12-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.12.5-1-ARCH x86_64 
Current Operating System: Linux madness 3.14.0-5-ARCH #1 SMP PREEMPT Fri Apr 11 21:02:33 CEST 2014 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=1c1beaf2-1bd3-46dd-a933-c5cc06a9ad1a ro quiet
Build Date: 09 January 2014  08:47:24AM

Current version of pixman: 0.32.4
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
naelstrof commented 10 years ago

On certain system configurations slop fails to grab the keyboard. I wasn't capable of debugging it well due to it working fine on my system, however you should be capable of running slop by using the --nokeyboard option I believe.

In the future I plan to catch the keyboard grab failure and have it fall back to other key press detections.

ghost commented 10 years ago

Ah, you are right, '--nokeyboard' runs well. If it matters, i tried running it on both bspwm and spectrwm (both being tiling window managers) and didn't work.

Thanks.

naelstrof commented 10 years ago

I'm re-opening because it's still a bad bug, the --nokeyboard option is a work-around.

naelstrof commented 10 years ago

Should be fixed with c0f4ef1