canReceiveFocus() should check no_focusable first
commit528d97b5975313816ee4ebc42d2f2ba5fa0905fe
authorRodolfo García Peñas (kix) <kix@kix.es>
Fri, 30 Mar 2012 14:24:39 +0000 (30 16:24 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 4 Apr 2012 10:49:23 +0000 (4 11:49 +0100)
tree768391450405b2828a281a3da9c8f86210a293e0
parent42a78ee73f70e70f1e3d7d8d4751846352f216be
canReceiveFocus() should check no_focusable first

The function canReceiveFocus should check if the window is no_focusable first.

If the window is not focusable but is miniaturized, the window is shown in the
switchpanel.

How to reproduce the problem:

- Open an application
- Open the window properties, advanced options
- Set that the application can not get the focus and save
- Test the switchpanel (Alt+Tab) the window doesn't appear
- Minimize the window
- Test the switchpanel (Alt+Tab), the window appears
- If the window is selected (restored), and test again the switchpanel, the window doesn't appear!
src/switchpanel.c