Fix active_task checking for group/app modal (i.e. "group transient") windows
@xclaesse
Submitted by Xavier Claessens Link to original bug (#310381)
Description
Please describe the problem: xmms and beep-media-player have multiple windows (player, playlist, equalizer, ...). each window has the flag WNCK_WINDOW_STATE_SKIP_TASKLIST set except the main window (the player itself). So only the player has a corresponding task in tasklist.
The problem is when xmms become active, the callback «wnck_tasklist_active_window_changed» is runned for each window composing xmms ! first time «wnck_screen_get_active_window» says that it's the player witch is the active window, that's cool because the player has a corresponding task witch become active. but after that, the callback is runned a second time and then «wnck_screen_get_active_window» returns the playlist as active window, witch isn't cool at all because there is no corresponding task and then active_window become NULL !
that's not dramatic for now, but it's more visible when applying the patch in bug #309956.
Steps to reproduce:
- lunch xmms
- click on its task on the window-list applet
- you see ? the button isn't pushed down !
Actual results:
Expected results:
Does this happen every time? yes
Other information: