Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SOLVED X_SetInputFocus error  (Read 3779 times)

0 Members and 1 Guest are viewing this topic.

Ziburinis

  • Newbie
  • *
  • Posts: 15
    • View Profile
SOLVED X_SetInputFocus error
« on: August 07, 2016, 11:33:21 pm »
Hello, I'm trying to get a hello world program to work. It compiles, but when I run it I get

Code: [Select]
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  80
  Current serial number in output stream:  89

I'm using ratpoison as my window manager, so I'm used to this sort of error. I saw that there was a closed issue for it on github, #991, so I compiled the latest code, and that didn't fix it. Normally I can grep setInputFocus and comment out the function that comes up and that fixes it, but I'm still getting the error after remaking and reinstalling. Can anyone think of a work around?

In case it matters, my uname -a:
Linux deb1 4.6.0-1-amd64 #1 SMP Debian 4.6.1-1 (2016-06-06) x86_64 GNU/Linux
And my graphics card is:
Radeon HD 6290

Thanks for reading, let me know if I should report it as a new issue, or if you think I should go pester the ratpoison people. The other library I saw it in, that I can remember, is nanogui, which may use some of the same boilerplate for OpenGL window stuff, so I don't have a good guess at whose bug it is, if it is indeed a bug.
« Last Edit: August 11, 2016, 06:42:21 pm by Ziburinis »

Ziburinis

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: X_SetInputFocus error
« Reply #1 on: August 11, 2016, 06:41:41 pm »
Hello, I'm trying to get a hello world program to work. It compiles, but when I run it I get

Code: [Select]
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  80
  Current serial number in output stream:  89

I'm using ratpoison as my window manager, so I'm used to this sort of error. I saw that there was a closed issue for it on github, #991, so I compiled the latest code, and that didn't fix it. Normally I can grep setInputFocus and comment out the function that comes up and that fixes it, but I'm still getting the error after remaking and reinstalling. Can anyone think of a work around?

In case it matters, my uname -a:
Linux deb1 4.6.0-1-amd64 #1 SMP Debian 4.6.1-1 (2016-06-06) x86_64 GNU/Linux
And my graphics card is:
Radeon HD 6290

Thanks for reading, let me know if I should report it as a new issue, or if you think I should go pester the ratpoison people. The other library I saw it in, that I can remember, is nanogui, which may use some of the same boilerplate for OpenGL window stuff, so I don't have a good guess at whose bug it is, if it is indeed a bug.

I took another crack at this today. Opening a window in fullscreen doesn't give the error (derp on my part). It grabs all of the keys before ratpoison gets to them, so I have to run a pkill -9 a.out to close the window, but since I doubt many of my end users will be using ratpoison this is an acceptable work around.

Ziburinis

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: SOLVED X_SetInputFocus error
« Reply #2 on: August 15, 2016, 12:18:11 am »
It grabs all of the keys before ratpoison gets to them, so I have to run a pkill -9 a.out to close the window, but since I doubt many of my end users will be using ratpoison this is an acceptable work around.
...

I think I've got everything working now, it was all user error. Apologies to the dev if time was spent trying to track this down.

 

anything