Linux: Alt-tab behaves strangely

So this is a problem I had also when using 2.x on linux, so not sure if its right to post here, but I’ll try anyway.

I cannot use alt-tab to switch between renoise and another program, because renoise always get minimized and put last in the list of windows when switching away from it. I used xwininfo to get some information about the renoise window, when focused, and after switching away with alt-tab. Map State is set to IsUnMapped after alt-tabbing away from renoise. This doesn’t happen with other windows. I’m running openbox.

Here is window info when renoise window is focused:

xwininfo: Window id: 0x1e0009b "Renoise (x86_64)"

  Absolute upper-left X: 56
  Absolute upper-left Y: 59
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1603
  Height: 900
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +56+59 -21+59 -21-91 +56-91
  -geometry 1603x900-21+59

Here is the same info directly after alt-tabbing away from renoise

xwininfo: Window id: 0x1e0009b "Renoise (x86_64)"

  Absolute upper-left X: 56
  Absolute upper-left Y: 59
  Relative upper-left X: 0
  Relative upper-left Y: 0
  Width: 1603
  Height: 900
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnMapped
  Override Redirect State: no
  Corners: +56+59 -21+59 -21-91 +56-91
  -geometry 1603x900-21+59

Hello,

this unfortunately is necessary when the “Override WM shortcuts option” is enabled. We’re grabbing the keyboard then, so byassing the window managers Alt-Tab handlers too. In order to nevertheless switch to other apps, we’re minimizing the window on Alt-Tab in Renoise. FurtherAlt-Tab hits will then be handled by the window manager again.

This is quite a hack, but the only way we found in order to make Alt-Tabbing work while still grabbing the keyboard.