Author Topic: Help closing tabs after another window has taken focus  (Read 5091 times)

Offline goishin

  • Single posting newcomer
  • *
  • Posts: 5
Help closing tabs after another window has taken focus
« on: January 23, 2012, 11:22:49 pm »
I'm not sure what's going on here, and it's possible I'm not searching for the right terms. But I'm having a problem getting the close button on tabs to work after another window has taken focus. For example: I do something in code::blocks. A dialog box comes up. I close the dialog box. Then I go back to coding, save the doc and now I want to close the code page I'm on. But the 'x' on the code page tab doesn't work. I have to alt-tab to something else, then immediately alt-tab back, and only then does the 'x' on the code page tab work.

I've searched for help on the forums, because I'm hopeful that I'm not the only one seeing this. But I must be using the wrong search terms because I'm not seeing any other posts about this.

Does anyone know how to get this to work right?

 - Goishin

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Help closing tabs after another window has taken focus
« Reply #1 on: January 24, 2012, 12:09:13 am »
OS/C::B/WM versions?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline goishin

  • Single posting newcomer
  • *
  • Posts: 5
Re: Help closing tabs after another window has taken focus
« Reply #2 on: January 24, 2012, 01:06:07 am »
Oops, sorry about that :(

  OS: Ubuntu 10.04
C::B: 10.05 (Build: Feb 22, 2011, 10:27:30 - wx2.8.11(Linux, unicode) -64 bit

And I'm not sure what WM means.

 - Goishin

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Help closing tabs after another window has taken focus
« Reply #3 on: January 24, 2012, 08:17:54 am »
Window manager.

Do you have some kind 'focus follow mouse' option enabled? If you have please try with it disabled.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline goishin

  • Single posting newcomer
  • *
  • Posts: 5
Re: Help closing tabs after another window has taken focus
« Reply #4 on: January 24, 2012, 10:03:34 pm »
Not that I'm aware of. I generally despise those :)

 - Robb

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Help closing tabs after another window has taken focus
« Reply #5 on: January 24, 2012, 10:08:27 pm »
'Follow focus mouse' is one great feature, but it is broken in wxGTK and in Flash, this made me stop using it :(

Could I ask you to build wx2.8 from source and then test the aui sample?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Help closing tabs after another window has taken focus
« Reply #6 on: January 24, 2012, 10:26:43 pm »
It works fine here with an actual revision of C::B, with dialogs from inside C::B and dialogs from other applications.
System is debian unstable/experimental 64 bit, wxWidgets 2.8.12, gnome-shell.

Is it be possible for you to try a nightly build from my repo.

And the aui sample can be tested without building wx2.8 from source, just building the sample with make -f makefile.unx should be enough.
YOu most likely need the sources to get the samples, but I'm not absolutely sure about this (they might also be included in one of the wx packages).