Patch: IM layout converted to LayoutModifier

Hi all! I've attached a patch, which converts XMonad.Layout.IM to layout modifier, so it can be applied to any layout. I found it quite useful when applied to the tabbed layout: this way we can emulate tabs for IM clients, which don't support tabs out of the box (Skype, etc.). P.S. Old 'data IM' is not deleted yet for compatibility with old configs. -- WBR, Ivan N. Veselov aka sphynx

* Ivan N. Veselov
Hi all!
I've attached a patch, which converts XMonad.Layout.IM to layout modifier, so it can be applied to any layout. I found it quite useful when applied to the tabbed layout: this way we can emulate tabs for IM clients, which don't support tabs out of the box (Skype, etc.).
P.S. Old 'data IM' is not deleted yet for compatibility with old configs.
I've just tested it with tabbed -- it doesn't seem to work. Tabs switch, but the window showed remains the same. -- Roman I. Cheplyaka (aka Feuerbach @ IRC)

I just pushed Ivan's patch together with my fix. However, there is still one bug when using this modifier with Tabbed or other layouts which are "non-pure" with respect to focus (i.e. depend on focused window). You can observe it when you move focus from some slave (chat) window to master (roster) window. Then currently shown chat window will change to the first chat window. This is because currently we don't remember, which window was focused previously. I think this can be fixed using the ability of modifier to return modified layout. Someone could try to fix this misbehaviour. But this modifier behaves correctly (as far as I can see) with "pure" layouts and it's even usable with Tabbed and other "non-pure" layouts, so I pushed it. -- Roman I. Cheplyaka (aka Feuerbach @ IRC)
participants (2)
-
Roman Cheplyaka
-
veselov@gmail.com