linuxmint/Cinnamon — pull request #1265 by autarkper (2012-10-10 13:31:57+00:00)
Title: [window-list applet] Improve focus tracking by checking whether a dialog has focus

The window list applet loses track of which which window has focus if the window opens a dialog. This patch fixes that issue by iterating through a window's "transient" windows to see whether one has focus.

How to test:
1) Open gedit and give it focus.
2) Make sure that gedit is highlighted in the window list.
3) In gedit, pull up the Open dialog (Ctrl-O).

Current behavior: window list does not show any window having focus.
Desired behavior: window list should keep gedit highlighted as long as the main window or any window belonging to the main window is active.