wmutils / opt

optional addons to wmutils
Other
114 stars 24 forks source link

wew makes Emacs think that X closed the connection #2

Closed greduan closed 9 years ago

greduan commented 9 years ago

Here's the error Emacs gives me when I run it in the CLI: http://sprunge.us/OiBL

This happens if I have wew -a running in another terminal, but if I close wew it works again, if I start wew again then it doesn't work anymore, which makes me think it's definitely wew.

I'm using bspwm if that matters, although I don't think it does.

So this crashes Emacs if I try starting it, but if Emacs is already running it doesn't crash it.

Any ideas why this might happen? Need any more info?

Vouivre commented 9 years ago

I have also a problem and it can be related with yours. I use the application upplay (http://www.lesbonscomptes.com/upplay/) which is an upnp control point to listen to my music. When wew is started I can start the application. When wew -a is running I can't start it. I get the following error:

X Error: BadAccess (attempt to access private resource denied) 10
  Major opcode: 2 (X_ChangeWindowAttributes)
  Resource id:  0x100000a

This application depends on qtwebkit. If I stop wew -a I can start the application without a problem. kdenlive is another application which uses qtwebkit. It has the same problem. With vlc I also get the error when wew -a is running. The difference is that the error is displayed but the applications starts.

Probably it has nothing to do with bspwm. On my system I have no problem with emacs.

z3bra commented 9 years ago

This is a "known" problem with wew in fact. I also encountered a few applications that couldn't start when wew -a is running. It has to do with the event mask used, and how wew catch events. I still don't fully understand what wew is doing wrong though, but it forbid clients to change their attributes by themselves. If anyone as an idea, that'd be nice

z3bra commented 9 years ago

Issue should be fixed as of latest commit (c835abc8416377d9e780b7a6662e5b57b32961f6). I finally figured what was going on! (read commit log for more details)

Vouivre commented 9 years ago

Great, thank you very much! One application I'm using couldn't start and with your fix there is no problem anymore.